projects
/
platform
/
upstream
/
rsync.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
717d046
)
Tweaked a comparison that "checker" was complaining about.
author
Wayne Davison
<wayned@samba.org>
Tue, 19 Feb 2008 19:52:00 +0000
(11:52 -0800)
committer
Wayne Davison
<wayned@samba.org>
Tue, 19 Feb 2008 19:52:00 +0000
(11:52 -0800)
generator.c
patch
|
blob
|
history
diff --git
a/generator.c
b/generator.c
index
d192aee
..
f4f15bb
100644
(file)
--- 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))