projects
/
platform
/
upstream
/
systemd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
324d7a5
)
install: improve paths we show the user when enabling/disabling
author
Lennart Poettering
<lennart@poettering.net>
Tue, 17 Jun 2014 00:15:03 +0000
(
02:15
+0200)
committer
Lennart Poettering
<lennart@poettering.net>
Tue, 17 Jun 2014 00:43:44 +0000
(
02:43
+0200)
src/shared/install.c
patch
|
blob
|
history
diff --git
a/src/shared/install.c
b/src/shared/install.c
index
afb2e53
..
c7cb522
100644
(file)
--- 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;