diff --git a/src/tmpfiles/tmpfiles.c b/src/tmpfiles/tmpfiles.c index 02eecf3e3a..90ba32ede0 100644 --- a/src/tmpfiles/tmpfiles.c +++ b/src/tmpfiles/tmpfiles.c @@ -2597,7 +2597,7 @@ static int parse_line(const char *fname, unsigned line, const char *buffer, bool case CREATE_SYMLINK: if (!i.argument) { - i.argument = strappend("/usr/share/factory/", i.path); + i.argument = path_join("/usr/share/factory/", i.path); if (!i.argument) return log_oom(); } @@ -2625,7 +2625,7 @@ static int parse_line(const char *fname, unsigned line, const char *buffer, bool } else if (arg_root) { char *p; - p = prefix_root(arg_root, i.argument); + p = path_join(arg_root, i.argument); if (!p) return log_oom(); free_and_replace(i.argument, p);