]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3: VFS: vfs_fruit: Wrap fruit_rmdir() so we can add parameters.
authorJeremy Allison <jra@samba.org>
Fri, 13 Sep 2019 20:24:23 +0000 (13:24 -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 e7d3c63c7a507d0d103c46dd56cf422e217ef536..32cff22621891b1bf55ac4354c33d05106bc8519 100644 (file)
@@ -2098,7 +2098,7 @@ static int fruit_chown(vfs_handle_struct *handle,
        return rc;
 }
 
-static int fruit_rmdir(struct vfs_handle_struct *handle,
+static int fruit_rmdir_internal(struct vfs_handle_struct *handle,
                        const struct smb_filename *smb_fname)
 {
        DIR *dh = NULL;
@@ -2175,6 +2175,13 @@ exit_rmdir:
        return SMB_VFS_NEXT_RMDIR(handle, smb_fname);
 }
 
+static int fruit_rmdir(struct vfs_handle_struct *handle,
+                       const struct smb_filename *smb_fname)
+{
+       return fruit_rmdir_internal(handle,
+                               smb_fname);
+}
+
 static int fruit_unlink(vfs_handle_struct *handle,
                        const struct smb_filename *smb_fname)
 {