]> git.ipfire.org Git - thirdparty/util-linux.git/commit
lib/configs: introduce config_mk_path() helper
authorKarel Zak <kzak@redhat.com>
Thu, 9 Oct 2025 20:19:40 +0000 (22:19 +0200)
committerKarel Zak <kzak@redhat.com>
Tue, 14 Oct 2025 11:22:05 +0000 (13:22 +0200)
commit1f22c17aee88dae6e71b5e2da47e32d8b745f297
tree80dea84999596da3202ec5c66e4ad92eb6209809
parent7ab32489bf93f6fff6d2164a177a09ae0a147979
lib/configs: introduce config_mk_path() helper

Refactor main_configs() and read_dir() to use a new helper function
that combines path construction with existence and type checking.
This reduces code duplication and simplifies the logic.

Signed-off-by: Karel Zak <kzak@redhat.com>
lib/configs.c