summaryrefslogtreecommitdiffstats
path: root/src/debug-generator/debug-generator.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/debug-generator/debug-generator.c')
-rw-r--r--src/debug-generator/debug-generator.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/debug-generator/debug-generator.c b/src/debug-generator/debug-generator.c
index 1b5fb2a28d..5faf8d7ddf 100644
--- a/src/debug-generator/debug-generator.c
+++ b/src/debug-generator/debug-generator.c
@@ -6,6 +6,7 @@
#include "generator.h"
#include "mkdir.h"
#include "parse-util.h"
+#include "path-util.h"
#include "proc-cmdline.h"
#include "special.h"
#include "string-util.h"
@@ -99,7 +100,7 @@ static int generate_mask_symlinks(void) {
STRV_FOREACH(u, arg_mask) {
_cleanup_free_ char *p = NULL;
- p = strjoin(arg_dest, "/", *u);
+ p = path_join(empty_to_root(arg_dest), *u);
if (!p)
return log_oom();