summaryrefslogtreecommitdiff
path: root/rsync.c
diff options
context:
space:
mode:
authorWayne Davison <wayned@samba.org>2005-01-03 21:05:39 +0000
committerWayne Davison <wayned@samba.org>2005-01-03 21:05:39 +0000
commita41a1e87182410ec6c2eeaddb0cd961ec554c404 (patch)
treeddbf3d6e25fbc5af89e748beeddf87e85744d059 /rsync.c
parent051547603a1f094b5e21cd955ed00a1711ebf1fb (diff)
downloadrsync-a41a1e87182410ec6c2eeaddb0cd961ec554c404.tar.gz
If there is no lchown(), don't try to set the user & group of a symlink.
Diffstat (limited to 'rsync.c')
-rw-r--r--rsync.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/rsync.c b/rsync.c
index 47b49a6f..8ee09c7c 100644
--- a/rsync.c
+++ b/rsync.c
@@ -161,6 +161,11 @@ int set_perms(char *fname,struct file_struct *file,STRUCT_STAT *st,
change_uid = am_root && preserve_uid && st->st_uid != file->uid;
change_gid = preserve_gid && file->gid != GID_NONE
&& st->st_gid != file->gid;
+#if !HAVE_LCHOWN
+ if (S_ISLNK(st->st_mode))
+ ;
+ else
+#endif
if (change_uid || change_gid) {
if (verbose > 2) {
if (change_uid) {