From: Ralph Boehme Date: Wed, 16 Dec 2020 14:27:39 +0000 (+0100) Subject: smbd: use a real dirfsp/atname in mkdir_internal() with SMB_VFS_MKDIRAT() X-Git-Tag: samba-4.14.0rc1~190 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=74b9080668cd4307e14049c9d908b5610911507b;p=thirdparty%2Fsamba.git smbd: use a real dirfsp/atname in mkdir_internal() with SMB_VFS_MKDIRAT() 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 Reviewed-by: Jeremy Allison --- diff --git a/source3/smbd/open.c b/source3/smbd/open.c index 0ef401bba46..fdbcb7c206c 100644 --- a/source3/smbd/open.c +++ b/source3/smbd/open.c @@ -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);