From 748f693a9c5a03542e77da893d3f4b957697482a Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Mon, 24 May 2021 16:39:35 -0700 Subject: [PATCH] s3: smbd: In mkdir_internal(), remove the local parent_dir_fname. We pass it in from the caller now. This will allow us to change directory_has_default_acl() to directory_has_default_acl_fsp() later. Signed-off-by: Jeremy Allison Reviewed-by: Ralph Boehme --- source3/smbd/open.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/source3/smbd/open.c b/source3/smbd/open.c index 6b03eec53c6..6d796794163 100644 --- a/source3/smbd/open.c +++ b/source3/smbd/open.c @@ -4400,7 +4400,7 @@ static NTSTATUS open_file_ntcreate(connection_struct *conn, } static NTSTATUS mkdir_internal(connection_struct *conn, - struct smb_filename *parent_dir_fname_in, /* parent. */ + struct smb_filename *parent_dir_fname, /* parent. */ struct smb_filename *smb_fname_atname, /* atname relative to parent. */ struct smb_filename *smb_dname, /* full pathname from root of share. */ uint32_t file_attributes, @@ -4409,7 +4409,6 @@ static NTSTATUS mkdir_internal(connection_struct *conn, const struct loadparm_substitution *lp_sub = loadparm_s3_global_substitution(); mode_t mode; - struct smb_filename *parent_dir_fname = parent_dir_fname_in; NTSTATUS status; bool posix_open = false; bool need_re_stat = false; -- 2.47.3