From: Wayne Davison Date: Mon, 15 Oct 2007 00:13:59 +0000 (+0000) Subject: If there's no lchmod(), don't itemize permission differences for X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/commitdiff_plain/fd78520dcad9247170341ae0f874085c8adaf219 If there's no lchmod(), don't itemize permission differences for symlinks. --- diff --git a/generator.c b/generator.c index 48497e05..6a131540 100644 --- a/generator.c +++ b/generator.c @@ -562,6 +562,11 @@ void itemize(const char *fnamecmp, struct file_struct *file, int ndx, int statre && (!(iflags & ITEM_XNAME_FOLLOWS) || *xname)) || (keep_time && cmp_time(file->modtime, sxp->st.st_mtime) != 0)) iflags |= ITEM_REPORT_TIME; +#ifndef HAVE_LCHMOD + if (S_ISLNK(file->mode)) { + ; + } else +#endif if (!BITS_EQUAL(sxp->st.st_mode, file->mode, CHMOD_BITS)) iflags |= ITEM_REPORT_PERMS; if (uid_ndx && am_root && (uid_t)F_OWNER(file) != sxp->st.st_uid)