From: Wayne Davison Date: Tue, 19 Feb 2008 19:52:00 +0000 (-0800) Subject: Tweaked a comparison that "checker" was complaining about. X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/commitdiff_plain/a43ff267e9b6a902e51249e728ef0be22c05b462 Tweaked a comparison that "checker" was complaining about. --- diff --git a/generator.c b/generator.c index d192aee6..f4f15bb8 100644 --- a/generator.c +++ b/generator.c @@ -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))