summaryrefslogtreecommitdiffstats
path: root/src/sysv-generator/sysv-generator.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2019-06-22 20:02:46 +0200
committerGitHub <noreply@github.com>2019-06-22 20:02:46 +0200
commitcee97d57687e93e07a8ee36edf0e0d0f3317fccc (patch)
tree7278ba990e750ae119cacfd6c19a0866579374ab /src/sysv-generator/sysv-generator.c
parentbpf-firewall: optimization for IPAddressXYZ="any" (and unprivileged users) (diff)
parentsd-path: use _cleanup_ attribute (diff)
downloadsystemd-cee97d57687e93e07a8ee36edf0e0d0f3317fccc.tar.xz
systemd-cee97d57687e93e07a8ee36edf0e0d0f3317fccc.zip
Merge pull request #12836 from yuwata/tree-wide-replace-strjoin
tree-wide: replace strjoin() with path_join()
Diffstat (limited to 'src/sysv-generator/sysv-generator.c')
-rw-r--r--src/sysv-generator/sysv-generator.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/sysv-generator/sysv-generator.c b/src/sysv-generator/sysv-generator.c
index 514b6e0169..13a9a77e81 100644
--- a/src/sysv-generator/sysv-generator.c
+++ b/src/sysv-generator/sysv-generator.c
@@ -784,7 +784,7 @@ static int enumerate_sysv(const LookupPaths *lp, Hashmap *all_services) {
continue;
}
- fpath = strjoin(*path, "/", de->d_name);
+ fpath = path_join(*path, de->d_name);
if (!fpath)
return log_oom();
@@ -829,7 +829,7 @@ static int set_dependencies_from_rcnd(const LookupPaths *lp, Hashmap *all_servic
_cleanup_free_ char *path = NULL;
struct dirent *de;
- path = strjoin(*p, "/", rcnd_table[i].path);
+ path = path_join(*p, rcnd_table[i].path);
if (!path) {
r = log_oom();
goto finish;
@@ -859,7 +859,7 @@ static int set_dependencies_from_rcnd(const LookupPaths *lp, Hashmap *all_servic
if (a < 0 || b < 0)
continue;
- fpath = strjoin(*p, "/", de->d_name);
+ fpath = path_join(*p, de->d_name);
if (!fpath) {
r = log_oom();
goto finish;