From: Lennart Poettering Date: Tue, 17 Jun 2014 00:15:03 +0000 (+0200) Subject: install: improve paths we show the user when enabling/disabling X-Git-Tag: v215~378 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=ac78d81a35fae1c10464992dac25f1527a05cbc9;p=elogind.git install: improve paths we show the user when enabling/disabling --- diff --git a/src/shared/install.c b/src/shared/install.c index afb2e5374..c7cb52202 100644 --- a/src/shared/install.c +++ b/src/shared/install.c @@ -160,12 +160,16 @@ static int add_file_change( if (!c[i].path) return -ENOMEM; + path_kill_slashes(c[i].path); + if (source) { c[i].source = strdup(source); if (!c[i].source) { free(c[i].path); return -ENOMEM; } + + path_kill_slashes(c[i].path); } else c[i].source = NULL;