diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2019-06-24 17:24:23 +0200 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2019-06-24 18:31:26 +0200 |
commit | 270384b2d494bd1f53242c923f875ccfdf6e214d (patch) | |
tree | 66b619dc3c5e218b9ac87b5034d807a78fda5cb7 /src/sysv-generator | |
parent | tree-wide: replace strjoin() with path_join() (diff) | |
download | systemd-270384b2d494bd1f53242c923f875ccfdf6e214d.tar.xz systemd-270384b2d494bd1f53242c923f875ccfdf6e214d.zip |
tree-wide: replace strjoina() with prefix_roota()
Diffstat (limited to 'src/sysv-generator')
-rw-r--r-- | src/sysv-generator/sysv-generator.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sysv-generator/sysv-generator.c b/src/sysv-generator/sysv-generator.c index 13a9a77e81..28f8ab301b 100644 --- a/src/sysv-generator/sysv-generator.c +++ b/src/sysv-generator/sysv-generator.c @@ -87,7 +87,7 @@ static int add_alias(const char *service, const char *alias) { assert(service); assert(alias); - link = strjoina(arg_dest, "/", alias); + link = prefix_roota(arg_dest, alias); r = symlink(service, link); if (r < 0) { @@ -116,7 +116,7 @@ static int generate_unit_file(SysvStub *s) { if (!path_escaped) return log_oom(); - unit = strjoina(arg_dest, "/", s->name); + unit = prefix_roota(arg_dest, s->name); /* We might already have a symlink with the same name from a Provides:, * or from backup files like /etc/init.d/foo.bak. Real scripts always win, |