mirror of
https://github.com/RsyncProject/rsync.git
synced 2026-10-23 06:14:18 -04:00
Tweaked a comparison that "checker" was complaining about.
This commit is contained in:
1 parent
717d04669a
commit
a43ff267e9
1 file changed
+1
-1
+1
-1
@@ -565,7 +565,7 @@ int unchanged_attrs(const char *fname, struct file_struct *file, stat_x *sxp)
|
||||
if (preserve_perms && !BITS_EQUAL(sxp->st.st_mode, file->mode, CHMOD_BITS))
|
||||
return 0;
|
||||
|
||||
if (preserve_executability && ((sxp->st.st_mode & 0111) != 0) ^ ((file->mode & 0111) != 0))
|
||||
if (preserve_executability && ((sxp->st.st_mode & 0111 ? 1 : 0) ^ (file->mode & 0111 ? 1 : 0)))
|
||||
return 0;
|
||||
|
||||
if (am_root && uid_ndx && sxp->st.st_uid != (uid_t)F_OWNER(file))
|
||||
|
||||
Reference in new issue
Block a user