From: Jeremy Allison Date: Fri, 13 Sep 2019 20:24:23 +0000 (-0700) Subject: s3: VFS: vfs_fruit: Wrap fruit_rmdir() so we can add parameters. X-Git-Tag: talloc-2.3.1~605 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=96842316788615a368b30f3808a0333678266453;p=thirdparty%2Fsamba.git s3: VFS: vfs_fruit: Wrap fruit_rmdir() so we can add parameters. Signed-off-by: Jeremy Allison Reviewed-by: Ralph Boehme --- diff --git a/source3/modules/vfs_fruit.c b/source3/modules/vfs_fruit.c index e7d3c63c7a5..32cff226218 100644 --- a/source3/modules/vfs_fruit.c +++ b/source3/modules/vfs_fruit.c @@ -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) {