diff options
author | Jeremy Allison <jra@samba.org> | 2019-10-04 12:51:06 -0700 |
---|---|---|
committer | Ralph Boehme <slow@samba.org> | 2019-10-10 06:09:40 +0000 |
commit | 7991a12e3f2b76220ab9885a98f4b427f035af81 (patch) | |
tree | ebfc40ff1d65204727aa180281db5f2094a10ae7 /source3/torture | |
parent | 576a143deb3aa2ab4ba183a8e81874d6210e9026 (diff) | |
download | samba-7991a12e3f2b76220ab9885a98f4b427f035af81.tar.gz |
s3: cmd_vfs: Change cmd_pathfunc() to call SMB_VFS_UNLINKAT() in rmdir case.
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')
-rw-r--r-- | source3/torture/cmd_vfs.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source3/torture/cmd_vfs.c b/source3/torture/cmd_vfs.c index 9024f16d96d..2408db1268c 100644 --- a/source3/torture/cmd_vfs.c +++ b/source3/torture/cmd_vfs.c @@ -454,7 +454,10 @@ static NTSTATUS cmd_pathfunc(struct vfs_state *vfs, TALLOC_CTX *mem_ctx, int arg } if (strcmp("rmdir", argv[0]) == 0 ) { - ret = SMB_VFS_RMDIR(vfs->conn, smb_fname); + ret = SMB_VFS_UNLINKAT(vfs->conn, + vfs->conn->cwd_fsp, + smb_fname, + AT_REMOVEDIR); TALLOC_FREE(smb_fname); } else if (strcmp("unlink", argv[0]) == 0 ) { TALLOC_FREE(smb_fname); |