1
0
mirror of https://github.com/systemd/systemd.git synced 2024-10-30 23:21:22 +03:00

shared: path_join() is your friend

This commit is contained in:
Lennart Poettering 2019-04-03 16:53:14 +02:00
parent 8a383bf2c0
commit 65290fbf3f

View File

@ -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();