Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Pass "new_mode" to set_acl() and change its return values.
[rsync/rsync.git]
/
generator.c
diff --git
a/generator.c
b/generator.c
index
836633e
..
acf4b88
100644
(file)
--- a/
generator.c
+++ b/
generator.c
@@
-417,7
+417,7
@@
int unchanged_attrs(const char *fname, struct file_struct *file, stat_x *sxp)
if (preserve_acls && !S_ISLNK(file->mode)) {
if (!ACL_READY(*sxp))
get_acl(fname, sxp);
if (preserve_acls && !S_ISLNK(file->mode)) {
if (!ACL_READY(*sxp))
get_acl(fname, sxp);
- if (set_acl(NULL, file, sxp
) == 0
)
+ if (set_acl(NULL, file, sxp
, file->mode)
)
return 0;
}
#endif
return 0;
}
#endif
@@
-476,7
+476,7
@@
void itemize(const char *fnamecmp, struct file_struct *file, int ndx, int statre
if (preserve_acls && !S_ISLNK(file->mode)) {
if (!ACL_READY(*sxp))
get_acl(fnamecmp, sxp);
if (preserve_acls && !S_ISLNK(file->mode)) {
if (!ACL_READY(*sxp))
get_acl(fnamecmp, sxp);
- if (set_acl(NULL, file, sxp
) == 0
)
+ if (set_acl(NULL, file, sxp
, file->mode)
)
iflags |= ITEM_REPORT_ACL;
}
#endif
iflags |= ITEM_REPORT_ACL;
}
#endif