Need to use (mode_t)~0 instead of ~0u for portability.
authorWayne Davison <wayned@samba.org>
Sun, 22 Oct 2006 04:16:23 +0000 (04:16 +0000)
committerWayne Davison <wayned@samba.org>
Sun, 22 Oct 2006 04:16:23 +0000 (04:16 +0000)
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) {