mirror of
https://github.com/samba-team/samba.git
synced 2024-12-27 03:21:53 +03:00
Fix from Corny.Bondad@hp.com for missing if (setting_acls) on default
perms. Jeremy.
This commit is contained in:
parent
7ec1c8869d
commit
793609cbc2
@ -699,11 +699,11 @@ static BOOL ensure_canon_entry_valid(canon_ace **pp_ace,
|
||||
pace->unix_ug.world = -1;
|
||||
pace->trustee = global_sid_World;
|
||||
pace->attr = ALLOW_ACE;
|
||||
if (setting_acl)
|
||||
if (setting_acl) {
|
||||
pace->perms = 0;
|
||||
else
|
||||
apply_default_perms(fsp, pace, S_IROTH);
|
||||
} else
|
||||
pace->perms = unix_perms_to_acl_perms(pst->st_mode, S_IROTH, S_IWOTH, S_IXOTH);
|
||||
apply_default_perms(fsp, pace, S_IROTH);
|
||||
|
||||
DLIST_ADD(*pp_ace, pace);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user