summaryrefslogtreecommitdiffstats
path: root/src/shared/udev-util.c
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2024-01-25 18:30:43 +0100
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2024-03-07 18:49:44 +0100
commite5abff372d028d28d50165358cd48b624cd0c2d2 (patch)
treedeff5a7ab41edcf31dedd391c90f19bc3650c6d0 /src/shared/udev-util.c
parentconstants: drop duplicated CONF_PATHS defines (diff)
downloadsystemd-e5abff372d028d28d50165358cd48b624cd0c2d2.tar.xz
systemd-e5abff372d028d28d50165358cd48b624cd0c2d2.zip
shared/conf-parser: collapse pkgdir and conf_file args into one
This essentially reverts 5656cdfeeabc16b5489f5ec7a0a36025a2ec1f23. I find it much easier to understand what is going on when the path-relative-to-the-search-path is passed in full, instead of being constructed from two parts, with one of the parts being implicit in some places. Also, we call 'systemd-analyze cat-config <path>' with <path> with the same meaning, so this makes the internal and external APIs more consistent.
Diffstat (limited to 'src/shared/udev-util.c')
-rw-r--r--src/shared/udev-util.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/shared/udev-util.c b/src/shared/udev-util.c
index 9acdaeff52..205afc5723 100644
--- a/src/shared/udev-util.c
+++ b/src/shared/udev-util.c
@@ -28,9 +28,8 @@ int udev_parse_config_full(const ConfigTableItem config_table[]) {
assert(config_table);
- r = config_parse_config_file_full(
- "udev.conf",
- "udev",
+ r = config_parse_config_file(
+ "udev/udev.conf",
/* sections = */ NULL,
config_item_table_lookup,
config_table,