]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smbd: use a real dirfsp/atname in mkdir_internal() with SMB_VFS_MKDIRAT()
authorRalph Boehme <slow@samba.org>
Wed, 16 Dec 2020 14:27:39 +0000 (15:27 +0100)
committerJeremy Allison <jra@samba.org>
Thu, 17 Dec 2020 18:56:29 +0000 (18:56 +0000)
Now that all VFS modules support real dirfsps in SMB_VFS_MKDIRAT(), pass the
pathref fsp from the parent directory and the basename of the new directory.

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

index 0ef401bba467bb4e901014c334d76764bf840685..fdbcb7c206c6ad6c1062eaf63803bfc83c9c71d3 100644 (file)
@@ -4381,8 +4381,8 @@ static NTSTATUS mkdir_internal(connection_struct *conn,
        }
 
        ret = SMB_VFS_MKDIRAT(conn,
-                             conn->cwd_fsp,
-                             smb_dname,
+                             parent_dir_fname->fsp,
+                             base_name,
                              mode);
        if (ret != 0) {
                TALLOC_FREE(parent_dir_fname);