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

Diff for /src/usr.bin/rsync/uploader.c between version 1.7 and 1.8

version 1.7, 2019/02/16 05:06:30 version 1.8, 2019/02/16 05:30:28
Line 242 
Line 242 
          */           */
   
         if (sess->opts->preserve_times) {          if (sess->opts->preserve_times) {
                 tv[0].tv_sec = time(NULL);                  struct timeval now;
                 tv[0].tv_nsec = 0;  
                   gettimeofday(&now, NULL);
                   TIMEVAL_TO_TIMESPEC(&now, &tv[0]);
                 tv[1].tv_sec = f->st.mtime;                  tv[1].tv_sec = f->st.mtime;
                 tv[1].tv_nsec = 0;                  tv[1].tv_nsec = 0;
                 rc = utimensat(p->rootfd, f->path, tv, AT_SYMLINK_NOFOLLOW);                  rc = utimensat(p->rootfd, f->path, tv, AT_SYMLINK_NOFOLLOW);

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.8