s3: VFS: vfs_acl_common: Convert rmdir_acl_common() to use UNLINKAT instead of RMDIR.
authorJeremy Allison <jra@samba.org>
Fri, 4 Oct 2019 21:37:01 +0000 (14:37 -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_acl_common.c

index c7b6fea5702c0a84ef7d8ecb073cdab9fe7b4c78..35dc82ee11d6e6dad57011e4ba9d69451ee50cae 100644 (file)
@@ -1192,7 +1192,10 @@ int rmdir_acl_common(struct vfs_handle_struct *handle,
        int ret;
 
        /* Try the normal rmdir first. */
-       ret = SMB_VFS_NEXT_RMDIR(handle, smb_fname);
+       ret = SMB_VFS_NEXT_UNLINKAT(handle,
+                       dirfsp,
+                       smb_fname,
+                       AT_REMOVEDIR);
        if (ret == 0) {
                return 0;
        }