X-Git-Url: https://mattmccutchen.net/rsync/rsync-patches.git/blobdiff_plain/03edfc6b845adc9f8fbeec1247a4e66d28cf4949..6af518aa4bffb3514a0b430f5cd80baa0e2c2f56:/atimes.diff diff --git a/atimes.diff b/atimes.diff index ffd79ca..20489e6 100644 --- a/atimes.diff +++ b/atimes.diff @@ -26,7 +26,7 @@ TODO: need to fix this to handle 64-bit time_t values! #ifdef ICONV_OPTION int ic_ndx; -@@ -112,6 +113,8 @@ void setup_protocol(int f_out,int f_in) +@@ -122,6 +123,8 @@ void setup_protocol(int f_out,int f_in) uid_ndx = ++file_extra_cnt; if (preserve_gid) gid_ndx = ++file_extra_cnt; @@ -137,7 +137,7 @@ TODO: need to fix this to handle 64-bit time_t values! + if (preserve_atimes && !S_ISDIR(file->mode) && !S_ISLNK(file->mode) + && cmp_time(F_ATIME(file), sxp->st.st_atime) != 0) + iflags |= ITEM_REPORT_ATIME; - #ifndef HAVE_LCHMOD + #if !defined HAVE_LCHMOD && !defined HAVE_SETATTRLIST if (S_ISLNK(file->mode)) { ; @@ -884,6 +888,8 @@ static int try_dests_reg(struct file_str @@ -225,7 +225,7 @@ TODO: need to fix this to handle 64-bit time_t values! {"omit-dir-times", 'O', POPT_ARG_VAL, &omit_dir_times, 1, 0, 0 }, {"no-omit-dir-times",0, POPT_ARG_VAL, &omit_dir_times, 0, 0, 0 }, {"no-O", 0, POPT_ARG_VAL, &omit_dir_times, 0, 0, 0 }, -@@ -1717,6 +1722,8 @@ void server_options(char **args, int *ar +@@ -1713,6 +1718,8 @@ void server_options(char **args, int *ar argstr[x++] = 'D'; if (preserve_times) argstr[x++] = 't';