mirror of
https://github.com/samba-team/samba.git
synced 2025-02-28 01:58:17 +03:00
s3: smbd: Change directory_has_default_acl() -> directory_has_default_acl_fsp().
Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
This commit is contained in:
parent
a87182b2eb
commit
428bceb127
@ -3813,9 +3813,7 @@ static NTSTATUS open_file_ntcreate(connection_struct *conn,
|
||||
*/
|
||||
|
||||
if ((flags2 & O_CREAT) && lp_inherit_acls(SNUM(conn)) &&
|
||||
(def_acl = directory_has_default_acl(conn,
|
||||
conn->cwd_fsp,
|
||||
parent_dir_fname)))
|
||||
(def_acl = directory_has_default_acl_fsp(parent_dir_fname->fsp)))
|
||||
{
|
||||
unx_mode = (0777 & lp_create_mask(SNUM(conn)));
|
||||
}
|
||||
@ -4301,9 +4299,7 @@ static NTSTATUS mkdir_internal(connection_struct *conn,
|
||||
}
|
||||
|
||||
if (lp_inherit_acls(SNUM(conn))) {
|
||||
if (directory_has_default_acl(conn,
|
||||
conn->cwd_fsp,
|
||||
parent_dir_fname)) {
|
||||
if (directory_has_default_acl_fsp(parent_dir_fname->fsp)) {
|
||||
mode = (0777 & lp_directory_mask(SNUM(conn)));
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user