[BACK]Return to fileio.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / mg

Diff for /src/usr.bin/mg/fileio.c between version 1.99 and 1.100

version 1.99, 2015/03/19 21:22:15 version 1.100, 2016/01/26 18:02:51
Line 266 
Line 266 
         }          }
         serrno = errno;          serrno = errno;
         (void) fchmod(to, (sb.st_mode & 0777));          (void) fchmod(to, (sb.st_mode & 0777));
   
           /* copy the mtime to the backupfile */
           struct timespec new_times[2];
           new_times[0] = sb.st_atim;
           new_times[1] = sb.st_mtim;
           futimens(to, new_times);
   
         close(from);          close(from);
         close(to);          close(to);
         if (nread == -1) {          if (nread == -1) {

Legend:
Removed from v.1.99  
changed lines
  Added in v.1.100