mirror of
https://github.com/zeek/zeek.git
synced 2025-10-16 21:48:21 +00:00
Re-instantiate providing location information to LoadFile
hooks.
#1835 subtly changed the semantics of the `LoadFile` plugin hook to no longer have the current script location available for signature files being loaded through `@load-sigs`. This was undocumented behavior, so it's technically not a regression, but since at least one external plugin is depending on it, this change restores the old behavior.
This commit is contained in:
parent
d29160e9de
commit
fccb9ccab0
8 changed files with 66 additions and 11 deletions
|
@ -1,7 +1,9 @@
|
|||
### BTest baseline data generated by btest-diff. Do not edit. Use "btest -U/-u" to update. Requires BTest >= 0.63.
|
||||
HookLoadExtended/script: file=|xxx| resolved=|./xxx.zeek|
|
||||
HookLoadExtended/script: file=|yyy| resolved=||
|
||||
HookLoadExtended/signature: file=|abc.sig| resolved=|./abc.sig|
|
||||
HookLoadExtended/script: file=|xxx| resolved=|./xxx.zeek| srcloc=|n/a|
|
||||
HookLoadExtended/script: file=|xxx3| resolved=|./xxx3.zeek| srcloc=|./xxx2.zeek|
|
||||
HookLoadExtended/script: file=|yyy| resolved=|| srcloc=|n/a|
|
||||
HookLoadExtended/signature: file=|abc.sig| resolved=|./abc.sig| srcloc=|n/a|
|
||||
HookLoadExtended/signature: file=|def.sig| resolved=|./def.sig| srcloc=|./xxx2.zeek|
|
||||
new zeek_init(): script has been replaced
|
||||
new zeek_init(): script has been added
|
||||
signature works!
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue