s3: VFS: vfs_posix_eadb: Convert posix_eadb_rmdir_internal() to call UNLINKAT() inste...
authorJeremy Allison <jra@samba.org>
Fri, 4 Oct 2019 22:07:46 +0000 (15:07 -0700)
committerRalph Boehme <slow@samba.org>
Thu, 10 Oct 2019 06:09:39 +0000 (06:09 +0000)
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/modules/vfs_posix_eadb.c

index 665469e2ed9f57529848f952fc7c3b6957b308d3..436a880d2ecd2a01e1287acf26580922760d1a3b 100644 (file)
@@ -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);