]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/systemctl/systemctl.c
tree-wide: replace strjoin() with path_join()
[thirdparty/systemd.git] / src / systemctl / systemctl.c
index 1158914fb4f60b9b8d5765a27c2c2890704e5e20..31bc776449eec0b8984720beee49288296d68d6b 100644 (file)
@@ -7329,12 +7329,12 @@ static int get_file_to_edit(
         assert(name);
         assert(ret_path);
 
-        path = strjoin(paths->persistent_config, "/", name);
+        path = path_join(paths->persistent_config, name);
         if (!path)
                 return log_oom();
 
         if (arg_runtime) {
-                run = strjoin(paths->runtime_config, "/", name);
+                run = path_join(paths->runtime_config, name);
                 if (!run)
                         return log_oom();
         }