summaryrefslogtreecommitdiffstats
path: root/src/portable
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2019-06-24 17:24:23 +0200
committerYu Watanabe <watanabe.yu+github@gmail.com>2019-06-24 18:31:26 +0200
commit270384b2d494bd1f53242c923f875ccfdf6e214d (patch)
tree66b619dc3c5e218b9ac87b5034d807a78fda5cb7 /src/portable
parenttree-wide: replace strjoin() with path_join() (diff)
downloadsystemd-270384b2d494bd1f53242c923f875ccfdf6e214d.tar.xz
systemd-270384b2d494bd1f53242c923f875ccfdf6e214d.zip
tree-wide: replace strjoina() with prefix_roota()
Diffstat (limited to 'src/portable')
-rw-r--r--src/portable/portable.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/portable/portable.c b/src/portable/portable.c
index 8202a8ca2e..4956ae7310 100644
--- a/src/portable/portable.c
+++ b/src/portable/portable.c
@@ -653,10 +653,10 @@ static int portable_changes_add_with_prefix(
return 0;
if (prefix) {
- path = strjoina(prefix, "/", path);
+ path = prefix_roota(prefix, path);
if (source)
- source = strjoina(prefix, "/", source);
+ source = prefix_roota(prefix, source);
}
return portable_changes_add(changes, n_changes, type, path, source);
@@ -847,7 +847,7 @@ static int attach_unit_file(
} else
(void) portable_changes_add(changes, n_changes, PORTABLE_MKDIR, where, NULL);
- path = strjoina(where, "/", m->name);
+ path = prefix_roota(where, m->name);
dropin_dir = strjoin(path, ".d");
if (!dropin_dir)
return -ENOMEM;