mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
Fix bug #7734 - When creating files with "inherit ACLs" set to true, we neglect to apply appropriate create masks.
Jeremy.
This commit is contained in:
parent
92adb68637
commit
8cad5e23b6
@ -217,7 +217,7 @@ static int vfswrap_mkdir(vfs_handle_struct *handle, const char *path, mode_t mo
|
||||
if (lp_inherit_acls(SNUM(handle->conn))
|
||||
&& parent_dirname(talloc_tos(), path, &parent, NULL)
|
||||
&& (has_dacl = directory_has_default_acl(handle->conn, parent)))
|
||||
mode = 0777;
|
||||
mode = (0777 & lp_dir_mask(SNUM(handle->conn)));
|
||||
|
||||
TALLOC_FREE(parent);
|
||||
|
||||
|
@ -1997,7 +1997,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, parent_dir))) {
|
||||
unx_mode = 0777;
|
||||
unx_mode = (0777 & lp_create_mask(SNUM(conn)));
|
||||
}
|
||||
|
||||
DEBUG(4,("calling open_file with flags=0x%X flags2=0x%X mode=0%o, "
|
||||
|
Loading…
Reference in New Issue
Block a user