summaryrefslogtreecommitdiff
path: root/source3/modules
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2019-10-04 15:07:46 -0700
committerRalph Boehme <slow@samba.org>2019-10-10 06:09:39 +0000
commita8507856ef1fc005a0fefa6e764663b48ec8ea1b (patch)
treefdecd033937800772bc6d837ba1fc4c6815c3538 /source3/modules
parent3221bab80feff7f9e3af05c08f13ecb3a0cf8cde (diff)
downloadsamba-a8507856ef1fc005a0fefa6e764663b48ec8ea1b.tar.gz
s3: VFS: vfs_posix_eadb: Convert posix_eadb_rmdir_internal() to call UNLINKAT() instead of RMDIR().
Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
Diffstat (limited to 'source3/modules')
-rw-r--r--source3/modules/vfs_posix_eadb.c5
1 files changed, 4 insertions, 1 deletions
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);