mirror of
https://github.com/samba-team/samba.git
synced 2025-01-26 10:04:02 +03:00
if no ACL elements then use chmod - fixes ability to set read-only bit
on files that do not have an ACL (This used to be commit 65ea13420c78cf0a8c01f14c08815e4b44ca4abc)
This commit is contained in:
parent
3bd7e65cac
commit
e555b969b2
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user