From: Ralph Boehme Date: Thu, 17 Dec 2020 11:31:13 +0000 (+0100) Subject: smbd: pass fsp to mkdir_internal() X-Git-Tag: samba-4.14.0rc1~192 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=83ffeac71636fa397c52116cbf8839ec350e2f51;p=thirdparty%2Fsamba.git smbd: pass fsp to mkdir_internal() Signed-off-by: Ralph Boehme Reviewed-by: Jeremy Allison --- 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;