]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
analyze: dump system config files with highlighted sections/directives 30362/head
authorFrantisek Sumsal <frantisek@sumsal.cz>
Thu, 7 Dec 2023 13:44:21 +0000 (14:44 +0100)
committerFrantisek Sumsal <frantisek@sumsal.cz>
Thu, 7 Dec 2023 14:35:54 +0000 (15:35 +0100)
src/analyze/analyze-cat-config.c

index 66bbbc11028a5219090d9a21e372a97b17ea4e38..073bc940185619f268b8b4e2a5c597f521b0d74e 100644 (file)
@@ -35,7 +35,7 @@ int verb_cat_config(int argc, char *argv[], void *userdata) {
                 } else
                         t = *arg;
 
-                r = conf_files_cat(arg_root, t, arg_cat_flags);
+                r = conf_files_cat(arg_root, t, arg_cat_flags | CAT_FORMAT_HAS_SECTIONS);
                 if (r < 0)
                         return r;
         }