vfs_virusfilter expects a non-NULL fsp->fsp_name to use for printing debugs
(it always indirects fsp->fsp_name). vfs_fruit also does the same, so would
also crash in fruit_close() with 'debug level = 10' and vfs_default:VFS_OPEN_HOW_RESOLVE_NO_SYMLINKS = no
set (we don't test with that which is why we haven't noticed
this before).
Remove knownfail.
BUG: https://bugzilla.samba.org/show_bug.cgi?id=15283
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
Autobuild-User(master): Volker Lendecke <vl@samba.org>
Autobuild-Date(master): Fri Jan 13 08:33:47 UTC 2023 on sn-devel-184
+++ /dev/null
-^samba3.blackbox.virus_scanner.check_infected_read\(fileserver:local\)
}
if (dirfsp != conn->cwd_fsp) {
- dirfsp->fsp_name = NULL;
SMB_ASSERT(fsp_get_pathref_fd(dirfsp) != -1);
fd_close(dirfsp);
+ dirfsp->fsp_name = NULL;
file_free(NULL, dirfsp);
dirfsp = NULL;
}
}
if ((dirfsp != NULL) && (dirfsp != conn->cwd_fsp)) {
- dirfsp->fsp_name = NULL;
SMB_ASSERT(fsp_get_pathref_fd(dirfsp) != -1);
fd_close(dirfsp);
+ dirfsp->fsp_name = NULL;
file_free(NULL, dirfsp);
dirfsp = NULL;
}