diff options
author | Lennart Poettering <lennart@poettering.net> | 2019-06-25 09:27:01 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-25 09:27:01 +0200 |
commit | 05b2ace14732fd4401c856f7c375a311ac6f2af1 (patch) | |
tree | 419344328d3208fd7de780d73ef9f56f2a333aa1 /src/sysv-generator/sysv-generator.c | |
parent | Merge pull request #12871 from keszybz/various-printing-fixes (diff) | |
parent | tree-wide: replace strjoina() with prefix_roota() (diff) | |
download | systemd-05b2ace14732fd4401c856f7c375a311ac6f2af1.tar.xz systemd-05b2ace14732fd4401c856f7c375a311ac6f2af1.zip |
Merge pull request #12870 from yuwata/tree-wide-further-path-join-cleanups
tree-wide: further path_join() and path_joina() cleanups
Diffstat (limited to 'src/sysv-generator/sysv-generator.c')
-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, |