summaryrefslogtreecommitdiff
path: root/src/conf-parser.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-05-24 05:25:33 +0200
committerLennart Poettering <lennart@poettering.net>2010-05-24 05:25:33 +0200
commit01f78473b104d28db0fa813414092bc6358ae521 (patch)
treedbc1a63d818c7420ee2a50cbd205ae90b0c7185d /src/conf-parser.c
parent871d7de47c13ee6cd78b8eefdf9128be3c740ac0 (diff)
path: add .path unit type for monitoring files
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++;
}