]> git.ipfire.org Git - thirdparty/rsync.git/commitdiff
If there's no lchmod(), don't itemize permission differences for
authorWayne Davison <wayned@samba.org>
Mon, 15 Oct 2007 00:13:59 +0000 (00:13 +0000)
committerWayne Davison <wayned@samba.org>
Mon, 15 Oct 2007 00:13:59 +0000 (00:13 +0000)
symlinks.

generator.c

index 48497e05f45b0c863c54e352bd7aae4aa605ab4b..6a131540a5fb5cc9d5df6b8d418a23b756473afd 100644 (file)
@@ -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)