From: Jeremy Allison Date: Fri, 4 Oct 2019 22:07:46 +0000 (-0700) Subject: s3: VFS: vfs_posix_eadb: Convert posix_eadb_rmdir_internal() to call UNLINKAT() inste... X-Git-Tag: talloc-2.3.1~425 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a8507856ef1fc005a0fefa6e764663b48ec8ea1b;p=thirdparty%2Fsamba.git 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 --- 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);