summaryrefslogtreecommitdiff
path: root/src/conf-parser.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/conf-parser.c')
-rw-r--r--src/conf-parser.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/conf-parser.c b/src/conf-parser.c
index 6994211b10..20f7641b13 100644
--- a/src/conf-parser.c
+++ b/src/conf-parser.c
@@ -337,6 +337,8 @@ int config_parse_path(
if (!(n = strdup(rvalue)))
return -ENOMEM;
+ path_kill_slashes(n);
+
free(*s);
*s = n;
@@ -441,6 +443,8 @@ int config_parse_path_strv(
goto fail;
}
+ path_kill_slashes(n[k]);
+
k++;
}