service: add generic LSB provides handling for facilities

This commit is contained in:
Lennart Poettering 2010-09-13 23:54:21 +02:00
parent 4f7dcad328
commit 32159d3a94

View File

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