]> git.ipfire.org Git - thirdparty/systemd.git/commit
systemd-path: add 'system-search-configuration' 39684/head
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 13 Nov 2025 13:02:30 +0000 (14:02 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 13 Nov 2025 13:11:11 +0000 (14:11 +0100)
commitdc04a884e07796335fe0899c74f1c1a3635ce110
tree01c1fb2a0dfd098610c382126db5efc8d9d624a2
parent14a9fb7a8e35562746090d3ecbf6696558354149
systemd-path: add 'system-search-configuration'

This provides functionality to replace what was provided by the preceding
revert:

  $ build/systemd-path system-search-configuration --suffix=sysctl.d
  /etc/sysctl.d:/run/sysctl.d:/usr/local/lib/sysctl.d:/usr/lib/sysctl.d

The result is identical, but more generic, since by changing suffix we can also
get the answer for sysusers.d, tmpfiles.d, and any other of the directories
which follow the same general rule.
man/sd_path_lookup.xml
src/libsystemd/sd-path/sd-path.c
src/path/path-tool.c
src/systemd/sd-path.h
test/units/TEST-74-AUX-UTILS.path.sh