s3: VFS: vfs_fruit: Change fruit_rmdir_internal() to call UNLINKAT instead of RMDIR.
authorJeremy Allison <jra@samba.org>
Fri, 4 Oct 2019 21:03:39 +0000 (14:03 -0700)
committerRalph Boehme <slow@samba.org>
Thu, 10 Oct 2019 06:09:40 +0000 (06:09 +0000)
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/modules/vfs_fruit.c

index a863f47fe1e6d0c289a8dc78440c4a74f2a89015..aa8d3a088b49bf494cf7e1788b15fc54bbf1b7e8 100644 (file)
@@ -2203,7 +2203,10 @@ exit_rmdir:
        if (dh) {
                SMB_VFS_CLOSEDIR(handle->conn, dh);
        }
-       return SMB_VFS_NEXT_RMDIR(handle, smb_fname);
+       return SMB_VFS_NEXT_UNLINKAT(handle,
+                               dirfsp,
+                               smb_fname,
+                               AT_REMOVEDIR);
 }
 
 static int fruit_rmdir(struct vfs_handle_struct *handle,