From 110de2f476296405892c1736652ba591b724bbf3 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Mon, 24 May 2021 18:38:06 -0700 Subject: [PATCH] s3: smbd: Pass parent_dir_fname parameter to inherit_new_acl(). Not yet used. Signed-off-by: Jeremy Allison Reviewed-by: Ralph Boehme --- source3/smbd/open.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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), -- 2.47.3