summaryrefslogtreecommitdiff
path: root/rsync.c
diff options
context:
space:
mode:
authorWayne Davison <wayned@samba.org>2008-02-18 16:48:04 -0800
committerWayne Davison <wayned@samba.org>2008-02-18 16:48:04 -0800
commit0099e423325e3c4ad919f6379f41cfe6618ad154 (patch)
treecb158e72dc05110eaa16a8cbb0f1a85105c4e685 /rsync.c
parent1ed56a05c26b6cb6f3891ce16be89aeab388a293 (diff)
downloadrsync-0099e423325e3c4ad919f6379f41cfe6618ad154.tar.gz
rsync-0099e423325e3c4ad919f6379f41cfe6618ad154.tar.bz2
rsync-0099e423325e3c4ad919f6379f41cfe6618ad154.zip
Only set FLAG_TIME_FAILED if receiver_symlink_times is set.
Diffstat (limited to 'rsync.c')
-rw-r--r--rsync.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/rsync.c b/rsync.c
index b0042f7a..6a5f5df3 100644
--- a/rsync.c
+++ b/rsync.c
@@ -41,6 +41,7 @@ extern int am_generator;
extern int am_starting_up;
extern int allow_8bit_chars;
extern int protocol_version;
+extern int receiver_symlink_times;
extern int uid_ndx;
extern int gid_ndx;
extern int inc_recurse;
@@ -399,7 +400,7 @@ int set_file_attrs(const char *fname, struct file_struct *file, stat_x *sxp,
}
if (ret == 0) /* ret == 1 if symlink could not be set */
updated = 1;
- else
+ else if (receiver_symlink_times)
file->flags |= FLAG_TIME_FAILED;
}