From 70a2c84cd2cdfa834edccf3a82cbe22618a3dd67 Mon Sep 17 00:00:00 2001 From: Wayne Davison Date: Mon, 3 Jan 2005 22:47:55 +0000 Subject: [PATCH] If lchown() is not available, we only skip the call to chown() for a symlink if it will try to follow the symlink (as a normal OS should). --- rsync.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rsync.c b/rsync.c index 8ee09c7c..f8206e52 100644 --- a/rsync.c +++ b/rsync.c @@ -161,7 +161,7 @@ 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 !HAVE_LCHOWN && !CHOWN_MODIFIES_SYMLINK if (S_ISLNK(st->st_mode)) ; else -- 2.34.1