Return to uploader.c CVS log | Up to [local] / src / usr.bin / rsync |
version 1.7, 2019/02/16 05:06:30 | version 1.8, 2019/02/16 05:30:28 | ||
---|---|---|---|
|
|
||
*/ | */ | ||
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); |