From: Jeremy Allison Date: Fri, 4 Oct 2019 21:03:39 +0000 (-0700) Subject: s3: VFS: vfs_fruit: Change fruit_rmdir_internal() to call UNLINKAT instead of RMDIR. X-Git-Tag: talloc-2.3.1~419 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=576a143deb3aa2ab4ba183a8e81874d6210e9026;p=thirdparty%2Fsamba.git s3: VFS: vfs_fruit: Change fruit_rmdir_internal() to call UNLINKAT instead of RMDIR. Signed-off-by: Jeremy Allison Reviewed-by: Ralph Boehme --- 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,