mirror of
https://github.com/systemd/systemd-stable.git
synced 2024-12-22 13:33:56 +03:00
analyze: fix 'cat-config systemd/zram-generator.conf'
Also makes this work for various systemd config files that support .d.
This commit is contained in:
parent
a119185c02
commit
28365e88d0
@ -234,6 +234,12 @@ static int guess_type(const char **name, char ***prefixes, bool *is_collection,
|
||||
if (!n)
|
||||
return log_oom();
|
||||
|
||||
/* All systemd-style config files should support the /usr-/etc-/run split and
|
||||
* dropins. Let's add a blanket rule that allows us to support them without keeping
|
||||
* an explicit list. */
|
||||
if (path_startswith(n, "systemd") && endswith(n, ".conf"))
|
||||
usr = true;
|
||||
|
||||
delete_trailing_chars(n, "/");
|
||||
|
||||
if (endswith(n, ".d"))
|
||||
|
Loading…
Reference in New Issue
Block a user