From: Jeremy Allison Date: Fri, 13 Sep 2019 17:56:30 +0000 (-0700) Subject: s3: cmd_vfs: Change cmd_pathfunc() to call SMB_VFS_UNLINKAT(). X-Git-Tag: talloc-2.3.1~617 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=244c3820a87e4273b1135959d197ec9fd30866a7;p=thirdparty%2Fsamba.git 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 Reviewed-by: Ralph Boehme --- 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);