From 576a143deb3aa2ab4ba183a8e81874d6210e9026 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Fri, 4 Oct 2019 14:03:39 -0700 Subject: [PATCH] s3: VFS: vfs_fruit: Change fruit_rmdir_internal() to call UNLINKAT instead of RMDIR. Signed-off-by: Jeremy Allison Reviewed-by: Ralph Boehme --- source3/modules/vfs_fruit.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/source3/modules/vfs_fruit.c b/source3/modules/vfs_fruit.c index a863f47fe1e..aa8d3a088b4 100644 --- a/source3/modules/vfs_fruit.c +++ b/source3/modules/vfs_fruit.c @@ -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, -- 2.47.3