mirror of
https://github.com/systemd/systemd.git
synced 2024-11-28 04:33:36 +08:00
service: add generic LSB provides handling for facilities
This commit is contained in:
parent
4f7dcad328
commit
32159d3a94
@ -277,9 +277,11 @@ static int sysv_translate_facility(const char *name, char **_r) {
|
||||
}
|
||||
|
||||
if (*name == '$')
|
||||
return 0;
|
||||
r = unit_name_build(name+1, NULL, ".target");
|
||||
else
|
||||
r = sysv_translate_name(name);
|
||||
|
||||
if (!(r = sysv_translate_name(name)))
|
||||
if (!r)
|
||||
return -ENOMEM;
|
||||
|
||||
finish:
|
||||
|
Loading…
Reference in New Issue
Block a user