From b133b81d8d18b998ee8e01ef034732c36169bf98 Mon Sep 17 00:00:00 2001 From: Ralph Boehme Date: Fri, 2 Oct 2020 17:25:33 +0200 Subject: [PATCH] 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 --- source3/smbd/open.c | 5 ----- 1 file changed, 5 deletions(-) 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) { -- 2.47.3