summaryrefslogtreecommitdiff
path: root/rsync.c
diff options
context:
space:
mode:
authorWayne Davison <wayned@samba.org>2007-09-01 16:57:01 +0000
committerWayne Davison <wayned@samba.org>2007-09-01 16:57:01 +0000
commitf9998046a3b0898810f8ed3b6368643b4c5874d9 (patch)
tree6134142e5ddbe189f80ce08c2e88932a693a1df0 /rsync.c
parent07bbf8703fa05ae612e0a2d7c71f0b0b914e1a97 (diff)
downloadrsync-f9998046a3b0898810f8ed3b6368643b4c5874d9.tar.gz
rsync-f9998046a3b0898810f8ed3b6368643b4c5874d9.tar.bz2
rsync-f9998046a3b0898810f8ed3b6368643b4c5874d9.zip
Made omit_dir_times a static variable in options.c by encoding
all the time-preserving semantics into preserve_times.
Diffstat (limited to 'rsync.c')
-rw-r--r--rsync.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/rsync.c b/rsync.c
index 4fcdea1d..5d09fd3e 100644
--- a/rsync.c
+++ b/rsync.c
@@ -33,7 +33,6 @@ extern int preserve_xattrs;
extern int preserve_perms;
extern int preserve_executability;
extern int preserve_times;
-extern int omit_dir_times;
extern int am_root;
extern int am_server;
extern int am_sender;
@@ -311,7 +310,7 @@ int set_file_attrs(const char *fname, struct file_struct *file, statx *sxp,
set_stat_xattr(fname, file);
#endif
- if (!preserve_times || (S_ISDIR(sxp->st.st_mode) && omit_dir_times))
+ if (!preserve_times || (S_ISDIR(sxp->st.st_mode) && preserve_times == 1))
flags |= ATTRS_SKIP_MTIME;
if (!(flags & ATTRS_SKIP_MTIME)
&& cmp_time(sxp->st.st_mtime, file->modtime) != 0) {