From 83ffeac71636fa397c52116cbf8839ec350e2f51 Mon Sep 17 00:00:00 2001 From: Ralph Boehme Date: Thu, 17 Dec 2020 12:31:13 +0100 Subject: [PATCH] smbd: pass fsp to mkdir_internal() Signed-off-by: Ralph Boehme Reviewed-by: Jeremy Allison --- source3/smbd/open.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/source3/smbd/open.c b/source3/smbd/open.c index d6dcf41183f..dfeb8b6907f 100644 --- a/source3/smbd/open.c +++ b/source3/smbd/open.c @@ -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; -- 2.47.2