]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3: VFS: vfs_fruit. Change fruit_pread_meta_stream() to use UNLINKAT().
authorJeremy Allison <jra@samba.org>
Fri, 13 Sep 2019 21:19:21 +0000 (14:19 -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 79382882af32207dea35418beff31c794688fe46..228f503a425bd14f9772e0f6f6189dca08518746 100644 (file)
@@ -2257,7 +2257,10 @@ static ssize_t fruit_pread_meta_stream(vfs_handle_struct *handle,
        DBG_ERR("Removing [%s] after short read [%zd]\n",
                fsp_str_dbg(fsp), nread);
 
-       ret = SMB_VFS_NEXT_UNLINK(handle, fsp->fsp_name);
+       ret = SMB_VFS_NEXT_UNLINKAT(handle,
+                       fsp->conn->cwd_fsp,
+                       fsp->fsp_name,
+                       0);
        if (ret != 0) {
                DBG_ERR("Removing [%s] failed\n", fsp_str_dbg(fsp));
                return -1;