]> git.ipfire.org Git - thirdparty/systemd.git/commit
conf-files: introduce CONF_FILES_CHASE_BASENAME flag
authorYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 27 Jun 2025 00:20:08 +0000 (09:20 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 27 Jun 2025 19:13:43 +0000 (04:13 +0900)
commit49653adef3ff47c7bcd1098c763eb2a55297df15
tree02737a04505fe97f036694403796940005cbe7cf
parent50c81130b69d04288f50217bede709bac6ca2b1a
conf-files: introduce CONF_FILES_CHASE_BASENAME flag

Previously, when a root directory is specified to conf_files_list() and
friends, the last component of each result was not resolved, even though
they internally chases the last component. So the caller needs to chase
the path again when the file is used.

This introduce a new flag that makes the whole path of each result is
resolved, hence caller can use it as is.
src/basic/conf-files.c
src/basic/conf-files.h
src/test/test-conf-files.c