From: Jeremy Allison Date: Tue, 17 Sep 2019 00:41:10 +0000 (-0700) Subject: s3: VFS: vfs_virusfilter: Change UNLINK -> UNLINKAT in infected_file_action_delete() X-Git-Tag: talloc-2.3.1~621 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=96aeaed858164bb1387c41c954e841e911ba561c;p=thirdparty%2Fsamba.git s3: VFS: vfs_virusfilter: Change UNLINK -> UNLINKAT in infected_file_action_delete() Signed-off-by: Jeremy Allison Reviewed-by: Ralph Boehme --- diff --git a/source3/modules/vfs_virusfilter.c b/source3/modules/vfs_virusfilter.c index e4cc45be5b6..6b16193339f 100644 --- a/source3/modules/vfs_virusfilter.c +++ b/source3/modules/vfs_virusfilter.c @@ -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; }