From ac78d81a35fae1c10464992dac25f1527a05cbc9 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Tue, 17 Jun 2014 02:15:03 +0200 Subject: install: improve paths we show the user when enabling/disabling --- src/shared/install.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/shared/install.c') diff --git a/src/shared/install.c b/src/shared/install.c index afb2e5374a..c7cb522028 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; -- cgit v1.2.3-54-g00ecf