git.samba.org
/
kai
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3bd7e65
)
if no ACL elements then use chmod - fixes ability to set read-only bit
author
Herb Lewis
<herb@samba.org>
Thu, 30 Aug 2001 18:56:35 +0000
(18:56 +0000)
committer
Herb Lewis
<herb@samba.org>
Thu, 30 Aug 2001 18:56:35 +0000
(18:56 +0000)
on files that do not have an ACL
(This used to be commit
65ea13420c78cf0a8c01f14c08815e4b44ca4abc
)
source3/smbd/posix_acls.c
patch
|
blob
|
history
diff --git
a/source3/smbd/posix_acls.c
b/source3/smbd/posix_acls.c
index b87605ee07c12ad4a92ea11ff5f223447ca275dd..39d0b83bf670cb32b930b2e8ff6175c37cc934bd 100644
(file)
--- a/
source3/smbd/posix_acls.c
+++ b/
source3/smbd/posix_acls.c
@@
-2213,11
+2213,11
@@
static int chmod_acl_internals( SMB_ACL_T posix_acl, mode_t mode)
}
/*
- * If this is a simple 3 element ACL then it's a standard
+ * If this is a simple 3 element ACL
or no elements
then it's a standard
* UNIX permission set. Just use chmod...
*/
- if (
num_entries == 3
)
+ if (
(num_entries == 3) || (num_entries == 0)
)
return -1;
return 0;