mirror of
https://github.com/RsyncProject/rsync.git
synced 2026-10-22 22:04:15 -04:00
If there's no lchmod(), don't itemize permission differences for
symlinks.
This commit is contained in:
1 parent
3f655ca08d
commit
fd78520dca
1 file changed
+5
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user