Subject: buglet in /etc/netstart
To: None <netbsd-bugs@sun-lamp.cs.berkeley.edu>
From: Bob Kemp <rsk@ecs.soton.ac.uk>
List: netbsd-bugs
Date: 03/26/1994 14:41:48
I _think_ there is a problem in line 60 of /etc/netstart
when there are no /etc/hostname.* files.

Description:
	/etc/netstart alters $IFS but this seems to fail if there
	are no /etc/hostname files because of the use of '.' in a
	globbed patttern.

		tmp="$IFS"
		IFS="$IFS."
		set -- `echo /etc/hostname.*`
		IFS=$tmp  
		unset tmp

OS:
	NetBSD-current 5thMar94

Repeat-By:
	cd /etc
	mkdir safe
	mv hostname.* safe
	fastboot

	During startup msgs will appear like
		interface passwd, groups,... not configured.
	because the globbing screws up

Fix-By:

	I think it should be
		set -- `echo /etc/hostname*`
	because otherwise the '.' gets converted to a blank.

	Alternatively it might be another bug in /bin/sh
	but I think not.

Bob


------------------------------------------------------------------------------