summaryrefslogtreecommitdiff
path: root/source3/utils
diff options
context:
space:
mode:
authorRalph Boehme <slow@samba.org>2020-05-14 14:00:22 +0200
committerRalph Boehme <slow@samba.org>2020-05-21 05:23:31 +0000
commit44cd415921158914bdb74513dde2391d09909b8c (patch)
treee0c8b988556e26ed7c34c8554fee872fe5aa8bf6 /source3/utils
parenta947b67d788a39fb37a9a00463227e2e642bc4ec (diff)
downloadsamba-44cd415921158914bdb74513dde2391d09909b8c.tar.gz
smbd: add dirfsp arg to SMB_VFS_CREATE_FILE()
As create_file_default() still need to be updated in the future to replace the SMB_VFS_STAT() calls with AT-based versions, it asserts (dirfsp == dirfsp->conn->cwd_fsp). Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3/utils')
-rw-r--r--source3/utils/net_vfs.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/utils/net_vfs.c b/source3/utils/net_vfs.c
index 59e9c60b3a6..ddd9514893f 100644
--- a/source3/utils/net_vfs.c
+++ b/source3/utils/net_vfs.c
@@ -244,6 +244,7 @@ static int net_vfs_get_ntacl(struct net_context *net,
status = SMB_VFS_CREATE_FILE(
state.conn_tos->conn,
NULL, /* req */
+ &state.conn_tos->conn->cwd_fsp,
smb_fname,
FILE_READ_ATTRIBUTES|READ_CONTROL_ACCESS,
FILE_SHARE_READ|FILE_SHARE_WRITE,