From a8507856ef1fc005a0fefa6e764663b48ec8ea1b Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Fri, 4 Oct 2019 15:07:46 -0700 Subject: [PATCH] s3: VFS: vfs_posix_eadb: Convert posix_eadb_rmdir_internal() to call UNLINKAT() instead of RMDIR(). Signed-off-by: Jeremy Allison Reviewed-by: Ralph Boehme --- source3/modules/vfs_posix_eadb.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/source3/modules/vfs_posix_eadb.c b/source3/modules/vfs_posix_eadb.c index 665469e2ed9..436a880d2ec 100644 --- a/source3/modules/vfs_posix_eadb.c +++ b/source3/modules/vfs_posix_eadb.c @@ -378,7 +378,10 @@ static int posix_eadb_rmdir_internal(vfs_handle_struct *handle, tdb_transaction_cancel(ea_tdb->tdb); } - ret = SMB_VFS_NEXT_RMDIR(handle, smb_fname); + ret = SMB_VFS_NEXT_UNLINKAT(handle, + dirfsp, + smb_fname, + AT_REMOVEDIR); if (ret == -1) { tdb_transaction_cancel(ea_tdb->tdb); -- 2.47.3