s3:modules:vfs_virusfilter: Recent New_VFS changes break vfs_virusfilter_openat.
authorTrever L. Adams <trever.adams@gmail.com>
Sat, 13 Mar 2021 19:47:21 +0000 (12:47 -0700)
committerNoel Power <npower@samba.org>
Mon, 22 Mar 2021 19:44:30 +0000 (19:44 +0000)
commitd6a16ad00e426a6f815215af71c071dd8e85a50a
tree4036a35ebc590071bb8cc44ce63b13e72bc1c06e
parent4af9868142529187a87b30cd522a144ead76cc8c
s3:modules:vfs_virusfilter: Recent New_VFS changes break vfs_virusfilter_openat.

The_New_VFS introduces several changes that broke vfs_virusfilter_openat. The assert to make sure certain checks would work broke.

This patch fixes those breaks and converts to the SMB_VFS_FSTAT_NEXT instead of SMB_VFS_STAT_NEXT.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=14671
RN: vfs_virusfilter_openat support New_VFS FSTAT, avoid SMB_ASSERT(fsp_get_pathref_fd(dirfsp) == AT_FDCWD); problem.

Signed-off-by: Trever L. Adams" <trever.adams@gmail.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Noel Power <npower@samba.org>
Autobuild-User(master): Noel Power <npower@samba.org>
Autobuild-Date(master): Mon Mar 22 19:44:30 UTC 2021 on sn-devel-184
source3/modules/vfs_virusfilter.c