]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smbd: Use dirfsp where we have it
authorVolker Lendecke <vl@samba.org>
Mon, 8 Aug 2022 12:05:46 +0000 (14:05 +0200)
committerJeremy Allison <jra@samba.org>
Tue, 9 Aug 2022 19:07:29 +0000 (19:07 +0000)
One reference to conn->cwd_fsp less, makes "mkdir" look less ugly in
strace.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/smbd/open.c

index d39d2d619cd0766b510b1e7339ac4c91d0d38d01..f1c2f7382bcff1fdc10d7e0466a8c069793875fd 100644 (file)
@@ -4329,7 +4329,7 @@ static NTSTATUS mkdir_internal(connection_struct *conn,
         */
        fsp->fsp_flags.is_pathref = true;
 
-       status = fd_openat(conn->cwd_fsp, smb_dname, fsp, &how);
+       status = fd_openat(parent_dir_fname->fsp, smb_fname_atname, fsp, &how);
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }