Matt McCutchen's Web Site
/
rsync
/
rsync-patches.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b6c2bb1
)
Need to use (mode_t)~0 instead of ~0u for portability.
author
Wayne Davison
<wayned@samba.org>
Sun, 22 Oct 2006 04:16:23 +0000
(
04:16
+0000)
committer
Wayne Davison
<wayned@samba.org>
Sun, 22 Oct 2006 04:16:23 +0000
(
04:16
+0000)
acls.diff
patch
|
blob
|
blame
|
history
diff --git
a/acls.diff
b/acls.diff
index
a4e352c
..
56035e0
100644
(file)
--- a/
acls.diff
+++ b/
acls.diff
@@
-914,7
+914,7
@@
latest ACL-enabling patch to send files to an older ACL-enabled rsync.
+ rsyserr(FERROR, errno, "change_sacl_perms: %s()",
+ errfun);
+ }
-+ return
~0u
;
++ return
(mode_t)~0
;
+ }
+
+#ifdef SMB_ACL_LOSES_SPECIAL_MODE_BITS
@@
-990,7
+990,7
@@
latest ACL-enabling patch to send files to an older ACL-enabled rsync.
+ if (type == SMB_ACL_TYPE_ACCESS) {
+ cur_mode = change_sacl_perms(duo_item->sacl, &duo_item->racl,
+ cur_mode, file->mode);
-+ if (cur_mode ==
~0u
)
++ if (cur_mode ==
(mode_t)~0
)
+ continue;
+ }
+ if (sys_acl_set_file(fname, type, duo_item->sacl) < 0) {