summaryrefslogtreecommitdiff
path: root/src/shared
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2014-06-17 02:15:03 +0200
committerLennart Poettering <lennart@poettering.net>2014-06-17 02:43:44 +0200
commitac78d81a35fae1c10464992dac25f1527a05cbc9 (patch)
tree7ce271456f3114706d7001221e717b82b595bf1d /src/shared
parent324d7a53b9c53b33520b97f2562219ac4143f581 (diff)
install: improve paths we show the user when enabling/disabling
Diffstat (limited to 'src/shared')
-rw-r--r--src/shared/install.c4
1 files changed, 4 insertions, 0 deletions
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;