]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
systemd-path: add new type SD_PATH_SEARCH_SYSCTL
authorGoffredo Baroncelli <kreijack@inwind.it>
Mon, 10 Nov 2025 21:56:04 +0000 (22:56 +0100)
committerGoffredo Baroncelli <kreijack@inwind.it>
Tue, 11 Nov 2025 18:31:16 +0000 (19:31 +0100)
Add new type SD_PATH_SEARCH_SYSCTL to the ones that systemd-path already
know.

Before the change:
$ systemd-path | egrep sysctl
sysctl: /usr/lib/sysctl.d

After the change:
$ ./systemd-path | egrep sysctl
search-sysctl: /etc/sysctl.d:/run/sysctl.d:/usr/local/lib/sysctl.d:/usr/lib/sysctl.d
sysctl: /usr/lib/sysctl.d

src/path/path-tool.c

index 3dc31832b38cba9ed31b8755981ad5ab53b285d9..92dbd3496b0fa1264ed7a1dcecd6fb32143f9d2d 100644 (file)
@@ -66,6 +66,7 @@ static const char* const path_table[_SD_PATH_MAX] = {
         [SD_PATH_SEARCH_CONFIGURATION_FACTORY]                = "search-configuration-factory",
         [SD_PATH_SEARCH_STATE_FACTORY]                        = "search-state-factory",
         [SD_PATH_SEARCH_CONFIGURATION]                        = "search-configuration",
+        [SD_PATH_SEARCH_SYSCTL]                               = "search-sysctl",
 
         [SD_PATH_SYSTEMD_UTIL]                                = "systemd-util",