From d384502e57ba25f5c97e5badd8113d92447f1d8f Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Thu, 1 May 2008 15:18:34 +0000 Subject: There could be a space between #! and /sbin/runscript, Gentoo #218001. --- sh/gendepends.sh.in | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'sh') diff --git a/sh/gendepends.sh.in b/sh/gendepends.sh.in index 5c555ade..1ae2e6d7 100644 --- a/sh/gendepends.sh.in +++ b/sh/gendepends.sh.in @@ -51,9 +51,11 @@ do [ -x "${RC_SERVICE}" -a -f "${RC_SERVICE}" ] || continue # Only generate dependencies for runscripts - read one two < "${RC_SERVICE}" - [ "${one}" = "#!@PREFIX@/sbin/runscript" ] || continue - unset one two + read one two three < "${RC_SERVICE}" + [ "${one}" = "#!@PREFIX@/sbin/runscript" ] || \ + [ "${one}" = "#!" -a "${two}" = "@PREFIX@/sbin/runscript" ] || \ + continue + unset one two three export RC_SVCNAME=${RC_SERVICE##*/} -- cgit v1.2.3