diff options
author | Lennart Poettering <lennart@poettering.net> | 2014-06-17 02:15:03 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2014-06-17 02:43:44 +0200 |
commit | ac78d81a35fae1c10464992dac25f1527a05cbc9 (patch) | |
tree | 7ce271456f3114706d7001221e717b82b595bf1d /src | |
parent | 324d7a53b9c53b33520b97f2562219ac4143f581 (diff) |
install: improve paths we show the user when enabling/disabling
Diffstat (limited to 'src')
-rw-r--r-- | src/shared/install.c | 4 |
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; |