Subject: misc/20045: rc.subr cannot mount multiple critical filesystems
To: None <>
From: None <>
List: netbsd-bugs
Date: 01/24/2003 20:53:19
>Number:         20045
>Category:       misc
>Synopsis:       mount_critical_filesystems in rc.subr cannot handle more than one filesystem in a list.
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    misc-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Jan 24 10:54:02 PST 2003
>Release:        NetBSD 1.6_STABLE
System: NetBSD Yorick 1.6_STABLE NetBSD 1.6_STABLE (YORICK) #32: Fri Jan 3 20:45:44 SAST 2003 yorick@Yorick:/usr/src/sys/arch/i386/compile/YORICK i386
Architecture: i386
Machine: i386
mount_critical_filesystems in rc.subr initializes a shell variable
incorrectly if a list of filesystems are to be supported.
In rc.conf, specify multiple critical filesystems for example
critical_filesystems_local="/var /tmp /usr"
--- etc/rc.subr	Sun Dec 29 20:05:36 2002
+++ etc/rc.subr	Tue Jan 21 18:59:55 2003
@@ -88,7 +88,7 @@
-	eval _fslist=\$critical_filesystems_${1}
+	eval _fslist=\"\$critical_filesystems_${1}\"
 	for _fs in $_fslist; do
 		mount | (