]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3: VFS: vfs_virusfilter: Change UNLINK -> UNLINKAT in infected_file_action_delete()
authorJeremy Allison <jra@samba.org>
Tue, 17 Sep 2019 00:41:10 +0000 (17:41 -0700)
committerRalph Boehme <slow@samba.org>
Thu, 26 Sep 2019 17:20:47 +0000 (17:20 +0000)
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/modules/vfs_virusfilter.c

index e4cc45be5b64c737956fc8220a94480b4a69f636..6b16193339ff16b0aecd243146444d89e9f650ff 100644 (file)
@@ -778,7 +778,10 @@ static virusfilter_action infected_file_action_delete(
        int saved_errno = 0;
 
        become_root();
-       ret = SMB_VFS_NEXT_UNLINK(handle, fsp->fsp_name);
+       ret = SMB_VFS_NEXT_UNLINKAT(handle,
+                               handle->conn->cwd_fsp,
+                               fsp->fsp_name,
+                               0);
        if (ret == -1) {
                saved_errno = errno;
        }