Subject: misc/27232: /etc/rc.d/sysdb fails with /bin/ksh
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <j+nbsd@2004.salmi.ch>
List: netbsd-bugs
Date: 10/12/2004 09:33:35
>Number:         27232
>Category:       misc
>Synopsis:       /etc/rc.d/sysdb fails with /bin/ksh
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    misc-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Oct 12 07:34:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     Jukka Salmi
>Release:        NetBSD 2.99.9
>Organization:
>Environment:
System: NetBSD himo.salmi.ch 2.99.9 NetBSD 2.99.9 (GENERIC) #0: Mon Oct 11 12:04:53 CEST 2004 build@himo.salmi.ch:/build/nbsd/sys/arch/i386/compile/GENERIC i386
Architecture: i386
Machine: i386
>Description:
When using /bin/ksh (instead of /bin/sh) to boot the system, all rc.d scripts
work fine except for rc.d/sysdb. A patch to fix this is attached.
>How-To-Repeat:
$ /bin/ksh /etc/rc.d/sysdb                                                    
/etc/rc.d/sysdb[30]: syntax error: `else' unexpected
>Fix:
--- etc/rc.d/sysdb.orig	2004-10-12 09:17:42.000000000 +0200
+++ etc/rc.d/sysdb	2004-10-12 09:18:31.000000000 +0200
@@ -26,7 +26,7 @@
 build_devdb()
 {
 	if [ /var/run/dev.db -nt /dev ]; then
-		# it's fine
+		: # it's fine
 	else
 		dev_mkdb
 	fi
>Release-Note:
>Audit-Trail:
>Unformatted: