]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#3830] Small fixes
authorFrancis Dupont <fdupont@isc.org>
Sun, 27 Apr 2025 12:15:03 +0000 (14:15 +0200)
committerAndrei Pavel <andrei@isc.org>
Fri, 16 May 2025 09:20:42 +0000 (12:20 +0300)
doc/sphinx/arm/hooks.rst
src/lib/hooks/tests/meson.build
src/lib/util/filesystem.cc

index 0390505b2f2e0050bfc2b596748885b7ead64c0c..999db0d88170c09d4d97d22646912938fcba1cd3 100644 (file)
@@ -225,7 +225,7 @@ configuration would be:
 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:
index eb56f8e36cdd3c0ce881d05ed3ddb5bca7cf9c3e..e6dd9fe91ccc8cc00a4ff59fff3c0138a6e80f61 100644 (file)
@@ -111,6 +111,7 @@ kea_hooks_tests = executable(
     '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,
 )
index 3a7865d117a41e629b505940c0ca604e3f515384..657e1e1f46a10f8bdf3fc0278196d55f718b57e0 100644 (file)
@@ -221,7 +221,7 @@ string TemporaryDirectory::dirName() {
 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() == '/') {