install: improve paths we show the user when enabling/disabling

This commit is contained in:
Lennart Poettering 2014-06-17 02:15:03 +02:00
parent 324d7a53b9
commit ac78d81a35

View file

@ -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;