From cb33e400006806676baac91fb297185b179931c7 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Tue, 28 Sep 2010 00:28:16 +0200 Subject: [PATCH] service: ignore sysv $null service --- fixme | 2 -- src/service.c | 4 ++++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/fixme b/fixme index 09ea3a65..f11d0e01 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 5706d7c4..6a4d350c 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]))) -- 2.39.5