]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smbd: use dirfsp in mkdir_internal()
authorRalph Boehme <slow@samba.org>
Fri, 10 Apr 2020 13:38:55 +0000 (15:38 +0200)
committerRalph Boehme <slow@samba.org>
Thu, 21 May 2020 05:23:31 +0000 (05:23 +0000)
Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/smbd/open.c

index 98e74ca9f8224238276b46d9f5c2502a243c5ccc..bb47ebc128d4e8663f304ad8244a7e639309b842 100644 (file)
@@ -4153,7 +4153,7 @@ static NTSTATUS mkdir_internal(connection_struct *conn,
        }
 
        status = check_parent_access(conn,
-                                    conn->cwd_fsp,
+                                    *dirfsp,
                                     smb_dname,
                                     access_mask);
        if(!NT_STATUS_IS_OK(status)) {
@@ -4166,7 +4166,7 @@ static NTSTATUS mkdir_internal(connection_struct *conn,
        }
 
        ret = SMB_VFS_MKDIRAT(conn,
-                             conn->cwd_fsp,
+                             *dirfsp,
                              smb_dname,
                              mode);
        if (ret != 0) {