summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-09-28 00:28:16 +0200
committerLennart Poettering <lennart@poettering.net>2010-09-28 00:28:16 +0200
commitcb33e400006806676baac91fb297185b179931c7 (patch)
treee9f00046859cfdc5d80b14496448c28c7669359c
parentb4a16b7b8abddb93205577aefd126040ff5310a3 (diff)
service: ignore sysv $null service
-rw-r--r--fixme2
-rw-r--r--src/service.c4
2 files changed, 4 insertions, 2 deletions
diff --git a/fixme b/fixme
index 09ea3a65e7..f11d0e0156 100644
--- a/fixme
+++ b/fixme
@@ -101,8 +101,6 @@
* readahead: btrfs/LVM SSD detection
-* handle $null LSB header
-
* LSB provides should only create targets, never aliases
* d /var/run/screen 0755 root utmp
diff --git a/src/service.c b/src/service.c
index 5706d7c490..6a4d350c9f 100644
--- a/src/service.c
+++ b/src/service.c
@@ -280,6 +280,10 @@ static int sysv_translate_facility(const char *name, char **_r) {
unsigned i;
char *r;
+ /* SuSE insserv extension */
+ if (streq(name, "$null"))
+ return 0;
+
for (i = 0; i < ELEMENTSOF(table); i += 2)
if (streq(table[i], name)) {
if (!(r = strdup(table[i+1])))