From: Jeremy Allison Date: Fri, 13 Sep 2019 21:21:28 +0000 (-0700) Subject: s3: VFS: vfs_fruit. Change delete_invalid_meta_stream() to use UNLINKAT(). X-Git-Tag: talloc-2.3.1~596 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6a55e676aa63f5ca86c53f849bab3d8fce877bc0;p=thirdparty%2Fsamba.git 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 --- 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));