]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3: smbd: In mkdir_internal(), remove the local parent_dir_fname. We pass it in from...
authorJeremy Allison <jra@samba.org>
Mon, 24 May 2021 23:39:35 +0000 (16:39 -0700)
committerRalph Boehme <slow@samba.org>
Wed, 9 Jun 2021 13:14:30 +0000 (13:14 +0000)
This will allow us to change directory_has_default_acl() to
directory_has_default_acl_fsp() later.

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/smbd/open.c

index 6b03eec53c614b0b79dc158386724ddc5693ea2c..6d796794163097489b672fcd20df0dfa2ed94fc6 100644 (file)
@@ -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;