]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3: VFS: vfs_acl_common: Convert unlink_acl_common(), acl_common_remove_object()...
authorJeremy Allison <jra@samba.org>
Tue, 17 Sep 2019 00:54:00 +0000 (17:54 -0700)
committerRalph Boehme <slow@samba.org>
Thu, 26 Sep 2019 17:20:48 +0000 (17:20 +0000)
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/modules/vfs_acl_common.c

index a9d53ff685765d5f54562b9d320473924fba4c5a..6ddb983964e53fa6a5b63c999fdb3d9b257b6b81 100644 (file)
@@ -1157,7 +1157,10 @@ static int acl_common_remove_object(vfs_handle_struct *handle,
        if (is_directory) {
                ret = SMB_VFS_NEXT_RMDIR(handle, &local_fname);
        } else {
-               ret = SMB_VFS_NEXT_UNLINK(handle, &local_fname);
+               ret = SMB_VFS_NEXT_UNLINKAT(handle,
+                               conn->cwd_fsp,
+                               &local_fname,
+                               0);
        }
        unbecome_root();
 
@@ -1211,7 +1214,10 @@ int unlink_acl_common(struct vfs_handle_struct *handle,
        int ret;
 
        /* Try the normal unlink first. */
-       ret = SMB_VFS_NEXT_UNLINK(handle, smb_fname);
+       ret = SMB_VFS_NEXT_UNLINKAT(handle,
+                               dirfsp,
+                               smb_fname,
+                               flags);
        if (ret == 0) {
                return 0;
        }