git.samba.org
/
rsync.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d518e02
)
Expand NO_ENTRY items from fake-super ACLs in get_rsync_acl().
author
Wayne Davison
<wayned@samba.org>
Wed, 25 May 2011 15:59:47 +0000
(08:59 -0700)
committer
Wayne Davison
<wayned@samba.org>
Wed, 25 May 2011 15:59:47 +0000
(08:59 -0700)
acls.c
patch
|
blob
|
history
diff --git
a/acls.c
b/acls.c
index 90279fca792e02c86c510b1ebbdbabd1a397334a..35734bb1ddf1ae887c47754346a142422c3bb7e6 100644
(file)
--- a/
acls.c
+++ b/
acls.c
@@
-495,9
+495,15
@@
static int get_rsync_acl(const char *fname, rsync_acl *racl,
}
racl->user_obj = IVAL(buf, 0);
+ if (racl->user_obj == NO_ENTRY)
+ racl->user_obj = (mode >> 6) & 7;
racl->group_obj = IVAL(buf, 4);
+ if (racl->group_obj == NO_ENTRY)
+ racl->group_obj = (mode >> 3) & 7;
racl->mask_obj = IVAL(buf, 8);
racl->other_obj = IVAL(buf, 12);
+ if (racl->other_obj == NO_ENTRY)
+ racl->other_obj = mode & 7;
if (cnt) {
char *bp = buf + 4*4;