diff options
author | Wayne Davison <wayned@samba.org> | 2005-01-03 21:05:39 +0000 |
---|---|---|
committer | Wayne Davison <wayned@samba.org> | 2005-01-03 21:05:39 +0000 |
commit | a41a1e87182410ec6c2eeaddb0cd961ec554c404 (patch) | |
tree | ddbf3d6e25fbc5af89e748beeddf87e85744d059 /rsync.c | |
parent | 051547603a1f094b5e21cd955ed00a1711ebf1fb (diff) | |
download | rsync-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.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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) { |