]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
analyze: drop duplicated :
authorYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 23 Nov 2023 19:44:33 +0000 (04:44 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 23 Nov 2023 19:44:35 +0000 (04:44 +0900)
Before, this returns e.g. "/current_dir::",
After, this returns e.g. "/current_dir:".

src/analyze/analyze-verify-util.c

index 622a10f6b07558cbad0ae2b0877dc5f1c887c9b2..cb3d96b66107c21079a8978cd23a4c2eb60bd2e2 100644 (file)
@@ -104,7 +104,7 @@ int verify_generate_path(char **ret, char **filenames) {
         old = getenv("SYSTEMD_UNIT_PATH");
         if (!streq_ptr(old, "")) {
                 if (!old)
-                        old = ":";
+                        old = "";
 
                 r = strv_extend(&ans, old);
                 if (r < 0)