[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

system/3589: nslookup in /etc/rc can suspend boot

>Number:         3589
>Category:       system
>Synopsis:       nslookup in /etc/rc can suspend boot
>Confidential:   yes
>Severity:       non-critical
>Priority:       low
>Responsible:    bugs
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Nov 30 01:30:02 GMT 2003
>Originator:     John Bartoszewski
>Release:        3.4
	System      : OpenBSD 3.4
	Architecture: OpenBSD.i386
	Machine     : i386
	/etc/rc (lines 256-258) call nslookup. If $_host1 or $_host2
	are empty nslookup will enter interactive mode and sit at the '>'
	prompt waiting for input.
	Don't rightly know how I screwed up NIS, but the 
		_host1=`ypwhich -m passwd 2> /dev/null' (line 250)
	had and error and returned nothing, causing $_host1 to be empty.
	Have nslookup read from stdin.
		_host1=`echo $_host1 | nslookup | grep '^Name: ' | \
	So if $_host1 is empty nslookup won't suspend the boot process.