summaryrefslogtreecommitdiff
path: root/source3/torture/cmd_vfs.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2019-09-13 10:56:30 -0700
committerRalph Boehme <slow@samba.org>2019-09-26 17:20:48 +0000
commit244c3820a87e4273b1135959d197ec9fd30866a7 (patch)
treeb71238ec6eb9c6ebe1699df52ebcc70cbf56402e /source3/torture/cmd_vfs.c
parentf8bdf5db6eb97458450392e2646db746a78b4d81 (diff)
downloadsamba-244c3820a87e4273b1135959d197ec9fd30866a7.tar.gz
s3: cmd_vfs: Change cmd_pathfunc() to call SMB_VFS_UNLINKAT().
Use conn->cwd_fsp as current fsp. No logic change for now. Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
Diffstat (limited to 'source3/torture/cmd_vfs.c')
-rw-r--r--source3/torture/cmd_vfs.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/source3/torture/cmd_vfs.c b/source3/torture/cmd_vfs.c
index 2efb8504db3..9024f16d96d 100644
--- a/source3/torture/cmd_vfs.c
+++ b/source3/torture/cmd_vfs.c
@@ -465,7 +465,10 @@ static NTSTATUS cmd_pathfunc(struct vfs_state *vfs, TALLOC_CTX *mem_ctx, int arg
if (smb_fname == NULL) {
return NT_STATUS_NO_MEMORY;
}
- ret = SMB_VFS_UNLINK(vfs->conn, smb_fname);
+ ret = SMB_VFS_UNLINKAT(vfs->conn,
+ vfs->conn->cwd_fsp,
+ smb_fname,
+ 0);
TALLOC_FREE(smb_fname);
} else if (strcmp("chdir", argv[0]) == 0 ) {
ret = SMB_VFS_CHDIR(vfs->conn, smb_fname);