X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;ds=sidebyside;f=src%2Fconf-parser.c;h=20f7641b13c5323e1b4600c2501f028ef3d7a1f1;hb=3930341a76d2f13e25d59baba4eafaf075e8ffeb;hp=6994211b1095ace6e014320b46971ae1d2a4b6c2;hpb=e99e38bbdcca3fe5956823bdb3d38544ccf93221;p=elogind.git diff --git a/src/conf-parser.c b/src/conf-parser.c index 6994211b1..20f7641b1 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++; }