s3: VFS: vfs_fruit. Change delete_invalid_meta_stream() to use UNLINKAT().
authorJeremy Allison <jra@samba.org>
Fri, 13 Sep 2019 21:21:28 +0000 (14:21 -0700)
committerRalph Boehme <slow@samba.org>
Thu, 26 Sep 2019 17:20:50 +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/modules/vfs_fruit.c

index 228f503a425bd14f9772e0f6f6189dca08518746..5791be1d089a356d8dfc4b7f09ea133005b47861 100644 (file)
@@ -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));