install: improve paths we show the user when enabling/disabling
This commit is contained in:
parent
324d7a53b9
commit
ac78d81a35
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue