From: Jeremy Allison Date: Tue, 25 May 2021 01:38:06 +0000 (-0700) Subject: s3: smbd: Pass parent_dir_fname parameter to inherit_new_acl(). X-Git-Tag: tevent-0.11.0~598 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=110de2f476296405892c1736652ba591b724bbf3;p=thirdparty%2Fsamba.git s3: smbd: Pass parent_dir_fname parameter to inherit_new_acl(). Not yet used. Signed-off-by: Jeremy Allison Reviewed-by: Ralph Boehme --- diff --git a/source3/smbd/open.c b/source3/smbd/open.c index f105866d2a9..7b9d23a3ad3 100644 --- a/source3/smbd/open.c +++ b/source3/smbd/open.c @@ -5043,7 +5043,8 @@ static NTSTATUS open_streams_for_delete(connection_struct *conn, as the NT ACL when read. *********************************************************************/ -static NTSTATUS inherit_new_acl(files_struct *fsp) +static NTSTATUS inherit_new_acl(struct smb_filename *parent_dir_fname, + files_struct *fsp) { TALLOC_CTX *frame = talloc_stackframe(); struct security_descriptor *parent_desc = NULL; @@ -6057,7 +6058,7 @@ static NTSTATUS create_file_unixpath(connection_struct *conn, } } else if (lp_inherit_acls(SNUM(conn))) { /* Inherit from parent. Errors here are not fatal. */ - status = inherit_new_acl(fsp); + status = inherit_new_acl(parent_dir_fname, fsp); if (!NT_STATUS_IS_OK(status)) { DEBUG(10,("inherit_new_acl: failed for %s with %s\n", fsp_str_dbg(fsp),