]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smbd: pass fsp to mkdir_internal()
authorRalph Boehme <slow@samba.org>
Thu, 17 Dec 2020 11:31:13 +0000 (12:31 +0100)
committerJeremy Allison <jra@samba.org>
Thu, 17 Dec 2020 18:56:29 +0000 (18:56 +0000)
Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/smbd/open.c

index d6dcf41183fcdf01984f5002d4f0b9a0dc054d1e..dfeb8b6907f48880f98d17c58bd4496f478d7bc6 100644 (file)
@@ -4314,7 +4314,8 @@ static NTSTATUS open_file_ntcreate(connection_struct *conn,
 
 static NTSTATUS mkdir_internal(connection_struct *conn,
                               struct smb_filename *smb_dname,
-                              uint32_t file_attributes)
+                              uint32_t file_attributes,
+                              struct files_struct *fsp)
 {
        const struct loadparm_substitution *lp_sub =
                loadparm_s3_global_substitution();
@@ -4563,7 +4564,8 @@ static NTSTATUS open_directory(connection_struct *conn,
 
                        status = mkdir_internal(conn,
                                                smb_dname,
-                                               file_attributes);
+                                               file_attributes,
+                                               fsp);
 
                        if (!NT_STATUS_IS_OK(status)) {
                                DEBUG(2, ("open_directory: unable to create "
@@ -4588,7 +4590,8 @@ static NTSTATUS open_directory(connection_struct *conn,
                        } else {
                                status = mkdir_internal(conn,
                                                        smb_dname,
-                                                       file_attributes);
+                                                       file_attributes,
+                                                       fsp);
 
                                if (NT_STATUS_IS_OK(status)) {
                                        info = FILE_WAS_CREATED;