git.samba.org
/
metze
/
samba
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f8bdf5d
)
s3: cmd_vfs: Change cmd_pathfunc() to call SMB_VFS_UNLINKAT().
author
Jeremy Allison
<jra@samba.org>
Fri, 13 Sep 2019 17:56:30 +0000
(10:56 -0700)
committer
Ralph Boehme
<slow@samba.org>
Thu, 26 Sep 2019 17:20:48 +0000
(17:20 +0000)
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>
source3/torture/cmd_vfs.c
patch
|
blob
|
history
diff --git
a/source3/torture/cmd_vfs.c
b/source3/torture/cmd_vfs.c
index 2efb8504db34414af3d254c7e78c0b0083984069..9024f16d96d636bf0c5429ed7304c2d7814eecb8 100644
(file)
--- 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);