diff options
author | Jeremy Allison <jra@samba.org> | 2019-10-04 15:07:46 -0700 |
---|---|---|
committer | Ralph Boehme <slow@samba.org> | 2019-10-10 06:09:39 +0000 |
commit | a8507856ef1fc005a0fefa6e764663b48ec8ea1b (patch) | |
tree | fdecd033937800772bc6d837ba1fc4c6815c3538 /source3/modules | |
parent | 3221bab80feff7f9e3af05c08f13ecb3a0cf8cde (diff) | |
download | samba-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.c | 5 |
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); |