summaryrefslogtreecommitdiff
path: root/examples/VFS/skel_transparent.c
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 /examples/VFS/skel_transparent.c
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 'examples/VFS/skel_transparent.c')
-rw-r--r--examples/VFS/skel_transparent.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/VFS/skel_transparent.c b/examples/VFS/skel_transparent.c
index b95ba1b858d..5c758f2fc5f 100644
--- a/examples/VFS/skel_transparent.c
+++ b/examples/VFS/skel_transparent.c
@@ -208,6 +208,7 @@ static int skel_open(vfs_handle_struct *handle, struct smb_filename *smb_fname,
static NTSTATUS skel_create_file(struct vfs_handle_struct *handle,
struct smb_request *req,
+ struct files_struct **dirfsp,
struct smb_filename *smb_fname,
uint32_t access_mask,
uint32_t share_access,
@@ -226,6 +227,7 @@ static NTSTATUS skel_create_file(struct vfs_handle_struct *handle,
{
return SMB_VFS_NEXT_CREATE_FILE(handle,
req,
+ dirfsp,
smb_fname,
access_mask,
share_access,