chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
install: improve paths we show the user when enabling/disabling
[elogind.git]
/
src
/
shared
/
install.c
diff --git
a/src/shared/install.c
b/src/shared/install.c
index afb2e5374ab12975c90f8c87030740e1fdf2a777..c7cb5220281a84f913db6576446a655a600321f1 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;