zeek/testing/btest/plugins/hooks-plugin
Johanna Amann 91dcefe104 Fix and extend behavior of HookLoadFile
This commit fixes and extends the behavior of HookLoadFile. Before this
change, HookLoadFile appended ".bro" to each path that was @loaded, even
if the path specified directory names. Furthermore it only gave the path
of the file as it was specified in the Bro script without revealing the
final path of the file that it was going to load.

This patch changes this behavior - in addition to giving the unmodified
path given in the @load command, the hook now returns the resolved path
of the file or directory it is going to load (if found). The hook is
furthermore raises for @load-sigs and @load-plugin; a enum specifies the
kind of load that is happening.
2017-11-16 12:31:27 -08:00
..
src Fix and extend behavior of HookLoadFile 2017-11-16 12:31:27 -08:00
.btest-ignore Adding a test building a file analyzer plugin. 2014-06-18 14:33:42 -07:00