]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3: VFS: vfs_fruit: Convert fruit_rmdir_internal() to UNLINKAT().
authorJeremy Allison <jra@samba.org>
Fri, 13 Sep 2019 20:43:29 +0000 (13:43 -0700)
committerRalph Boehme <slow@samba.org>
Thu, 26 Sep 2019 17:20:49 +0000 (17:20 +0000)
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/modules/vfs_fruit.c

index f206995fe2e4c926923090bfc97b35679a3afba1..75d50234c05ebbb292a5000f2b8b0a8c35b44c0d 100644 (file)
@@ -2161,7 +2161,10 @@ static int fruit_rmdir_internal(struct vfs_handle_struct *handle,
                }
                TALLOC_FREE(ad);
 
-               ret = SMB_VFS_NEXT_UNLINK(handle, ad_smb_fname);
+               ret = SMB_VFS_NEXT_UNLINKAT(handle,
+                               dirfsp,
+                               ad_smb_fname,
+                               0);
                if (ret != 0) {
                        DBG_ERR("Deleting [%s] failed\n",
                                smb_fname_str_dbg(ad_smb_fname));