mirror of
https://github.com/AuxXxilium/eudev.git
synced 2024-12-28 06:35:34 +07:00
service: prefix descriptions when they come from legacy sources
This commit is contained in:
parent
85ad5b18ad
commit
4694836523
@ -488,7 +488,7 @@ static int service_load_sysv_path(Service *s, const char *path) {
|
||||
t[k-1] = 0;
|
||||
}
|
||||
|
||||
if (!(d = strdup(strstrip(t+12)))) {
|
||||
if (!(d = strappend("LSB: ", strstrip(t+12)))) {
|
||||
r = -ENOMEM;
|
||||
goto finish;
|
||||
}
|
||||
@ -635,7 +635,7 @@ static int service_load_sysv_path(Service *s, const char *path) {
|
||||
|
||||
state = LSB_DESCRIPTION;
|
||||
|
||||
if (!(d = strdup(strstrip(t+12)))) {
|
||||
if (!(d = strappend("LSB: ", strstrip(t+12)))) {
|
||||
r = -ENOMEM;
|
||||
goto finish;
|
||||
}
|
||||
@ -648,7 +648,7 @@ static int service_load_sysv_path(Service *s, const char *path) {
|
||||
|
||||
state = LSB;
|
||||
|
||||
if (!(d = strdup(strstrip(t+18)))) {
|
||||
if (!(d = strappend("LSB: ", strstrip(t+18)))) {
|
||||
r = -ENOMEM;
|
||||
goto finish;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user