From: Ralph Boehme Date: Fri, 2 Oct 2020 15:25:33 +0000 (+0200) Subject: smbd: avoid using dirfsp arg in create_file_default() X-Git-Tag: talloc-2.3.2~327 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b133b81d8d18b998ee8e01ef034732c36169bf98;p=thirdparty%2Fsamba.git smbd: avoid using dirfsp arg in create_file_default() This is not used anymore in the callees. Signed-off-by: Ralph Boehme Reviewed-by: Jeremy Allison --- diff --git a/source3/smbd/open.c b/source3/smbd/open.c index 29d7025e3c7..35fda540b65 100644 --- a/source3/smbd/open.c +++ b/source3/smbd/open.c @@ -5902,9 +5902,6 @@ NTSTATUS create_file_default(connection_struct *conn, NTSTATUS status; bool stream_name = false; struct smb2_create_blob *posx = NULL; - struct files_struct *dirfsp = *_dirfsp; - - SMB_ASSERT(dirfsp == dirfsp->conn->cwd_fsp); DBG_DEBUG("create_file: access_mask = 0x%x " "file_attributes = 0x%x, share_access = 0x%x, " @@ -5912,7 +5909,6 @@ NTSTATUS create_file_default(connection_struct *conn, "oplock_request = 0x%x " "private_flags = 0x%x " "ea_list = %p, sd = %p, " - "dirfsp = %s, " "fname = %s\n", (unsigned int)access_mask, (unsigned int)file_attributes, @@ -5923,7 +5919,6 @@ NTSTATUS create_file_default(connection_struct *conn, (unsigned int)private_flags, ea_list, sd, - fsp_str_dbg(dirfsp), smb_fname_str_dbg(smb_fname)); if (req != NULL) {