summaryrefslogtreecommitdiffstats
path: root/src/shared/base-filesystem.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2019-04-03 16:53:14 +0200
committerLennart Poettering <lennart@poettering.net>2019-04-03 17:27:20 +0200
commit65290fbf3f88ced422d219679fdcd4dc7ec9699b (patch)
tree68c95b70db17c2e94ebcbe48e5ec23b1a0dc0f9a /src/shared/base-filesystem.c
parentshared: no need to initialize variable (diff)
downloadsystemd-65290fbf3f88ced422d219679fdcd4dc7ec9699b.tar.xz
systemd-65290fbf3f88ced422d219679fdcd4dc7ec9699b.zip
shared: path_join() is your friend
Diffstat (limited to 'src/shared/base-filesystem.c')
-rw-r--r--src/shared/base-filesystem.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/shared/base-filesystem.c b/src/shared/base-filesystem.c
index a55b2a017f..33c13af6c4 100644
--- a/src/shared/base-filesystem.c
+++ b/src/shared/base-filesystem.c
@@ -14,6 +14,7 @@
#include "log.h"
#include "macro.h"
#include "nulstr-util.h"
+#include "path-util.h"
#include "string-util.h"
#include "umask-util.h"
#include "user-util.h"
@@ -68,7 +69,7 @@ int base_filesystem_create(const char *root, uid_t uid, gid_t gid) {
if (table[i].exists) {
_cleanup_free_ char *p = NULL;
- p = strjoin(s, "/", table[i].exists);
+ p = path_join(s, table[i].exists);
if (!p)
return log_oom();