Deprecate BRO_PLUGIN_INSTALL_PATH constant

This commit is contained in:
Tim Wojtulewicz 2025-06-11 14:46:41 -07:00
parent 37be47328e
commit 6aa5145782
2 changed files with 3 additions and 2 deletions

View file

@ -3,7 +3,8 @@
#pragma once
constexpr char ZEEK_SCRIPT_INSTALL_PATH[] = "@ZEEK_SCRIPT_INSTALL_PATH@";
constexpr char BRO_PLUGIN_INSTALL_PATH[] = "@ZEEK_PLUGIN_DIR@";
[[deprecated("Remove in v8.1. Use ZEEK_PLUGIN_INSTALL_PATH")]] constexpr char BRO_PLUGIN_INSTALL_PATH[] =
"@ZEEK_PLUGIN_DIR@";
constexpr char ZEEK_PLUGIN_INSTALL_PATH[] = "@ZEEK_PLUGIN_DIR@";
constexpr char DEFAULT_ZEEKPATH[] = "@DEFAULT_ZEEKPATH@";
constexpr char ZEEK_SPICY_MODULE_PATH[] = "@ZEEK_SPICY_MODULE_PATH@";

View file

@ -1593,7 +1593,7 @@ const char* zeek_plugin_path() {
const char* path = getenv("ZEEK_PLUGIN_PATH");
if ( ! path )
path = BRO_PLUGIN_INSTALL_PATH;
path = ZEEK_PLUGIN_INSTALL_PATH;
return path;
}