As of Kea 2.7.8, hook libraries may only be loaded from the default installation
directory determined during compilation and shown in the config report as
"Hooks directory". This value may be overridden at startup by setting the
-enviornment variable ``KEA_HOOKS_PATH`` to the desired path. If a path other
+environment variable ``KEA_HOOKS_PATH`` to the desired path. If a path other
than this value is used in a ``library`` element Kea will emit an error and refuse
to load the library. For ease of use ``library`` elements may simply omit path
components, specifying the file name only as shown below:
'run_unittests.cc',
'server_hooks_unittest.cc',
dependencies: [GTEST_DEP],
+ cpp_args: [f'-DDEFAULT_HOOKS_PATH="@DEFAULT_HOOKS_PATH@"'],
include_directories: [include_directories('.')] + INCLUDES,
link_with: [kea_util_unittests_lib] + LIBS_BUILT_SO_FAR,
)
std::string
FileManager::validatePath(const std::string supported_path_str, const std::string input_path_str,
bool enforce_path /* = true */) {
- // Remove the trailing "/" if it present so comparision to
+ // Remove the trailing "/" if it present so comparison to
// input's parent path functions.
auto supported_path_copy(supported_path_str);
if (supported_path_copy.back() == '/') {