mirror of
https://github.com/systemd/systemd.git
synced 2025-03-31 14:50:15 +03:00
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…
x
Reference in New Issue
Block a user