From 6a55e676aa63f5ca86c53f849bab3d8fce877bc0 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Fri, 13 Sep 2019 14:21:28 -0700 Subject: [PATCH] s3: VFS: vfs_fruit. Change delete_invalid_meta_stream() to use UNLINKAT(). Use conn->cwd_fsp as current fsp. No logic change for now. Signed-off-by: Jeremy Allison Reviewed-by: Ralph Boehme --- source3/modules/vfs_fruit.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/source3/modules/vfs_fruit.c b/source3/modules/vfs_fruit.c index 228f503a425..5791be1d089 100644 --- a/source3/modules/vfs_fruit.c +++ b/source3/modules/vfs_fruit.c @@ -3498,7 +3498,10 @@ static NTSTATUS delete_invalid_meta_stream( return NT_STATUS_NO_MEMORY; } - ret = SMB_VFS_NEXT_UNLINK(handle, sname); + ret = SMB_VFS_NEXT_UNLINKAT(handle, + handle->conn->cwd_fsp, + sname, + 0); TALLOC_FREE(sname); if (ret != 0) { DBG_ERR("Removing [%s] failed\n", smb_fname_str_dbg(sname)); -- 2.47.3