]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smbd: avoid using dirfsp arg in create_file_default()
authorRalph Boehme <slow@samba.org>
Fri, 2 Oct 2020 15:25:33 +0000 (17:25 +0200)
committerJeremy Allison <jra@samba.org>
Fri, 2 Oct 2020 19:39:44 +0000 (19:39 +0000)
This is not used anymore in the callees.

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/smbd/open.c

index 29d7025e3c7023d3dbcdb28e8d1333b6a7de65ac..35fda540b65a456f965f60409af954fcbde060fc 100644 (file)
@@ -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) {