From d42decabd30ff8031a02cb94ddf98a86a38eecdc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20B=C3=A4chler?= Date: Sun, 7 Jun 2009 16:36:03 +0200 Subject: Fix array count/walk in rc.shutdown and rc.single, see #13263 --- rc.single | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rc.single') diff --git a/rc.single b/rc.single index e0cfbe8..6eaf063 100755 --- a/rc.single +++ b/rc.single @@ -8,7 +8,7 @@ if [ "$PREVLEVEL" = "3" -o "$PREVLEVEL" = "5" ]; then # Shutdown daemons - let i=${#DAEMONS[@]} + let i=${#DAEMONS[@]}-1 while [ $i -ge 0 ]; do if [ "${DAEMONS[$i]:0:1}" != '!' ]; then ck_daemon ${DAEMONS[$i]#@} || stop_daemon ${DAEMONS[$i]#@} -- cgit v1.2.3