X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Fshared%2Finstall.c;h=c7cb5220281a84f913db6576446a655a600321f1;hp=afb2e5374ab12975c90f8c87030740e1fdf2a777;hb=ac78d81a35fae1c10464992dac25f1527a05cbc9;hpb=324d7a53b9c53b33520b97f2562219ac4143f581 diff --git a/src/shared/install.c b/src/shared/install.c index afb2e5374..c7cb52202 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;