summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;