[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
system/3589: nslookup in /etc/rc can suspend boot
- To: gnats@openbsd.org
- Subject: system/3589: nslookup in /etc/rc can suspend boot
- From: johnb@ugrad.cs.ualberta.ca
- Date: Sat, 29 Nov 2003 18:12:47 -0700 (MST)
- Resent-Date: Sat, 29 Nov 2003 18:35:02 -0700 (MST)
- Resent-From: gnats@cvs.openbsd.org (GNATS Filer)
- Resent-Message-Id: <200311300135.hAU1Z2lF012936@cvs.openbsd.org>
- Resent-Reply-To: gnats@cvs.openbsd.org, johnb@ugrad.cs.ualberta.ca
- Resent-To: bugs@cvs.openbsd.org
>Number: 3589
>Category: system
>Synopsis: nslookup in /etc/rc can suspend boot
>Confidential: yes
>Severity: non-critical
>Priority: low
>Responsible: bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Nov 30 01:30:02 GMT 2003
>Closed-Date:
>Last-Modified:
>Originator: John Bartoszewski
>Release: 3.4
>Organization:
net
>Environment:
System : OpenBSD 3.4
Architecture: OpenBSD.i386
Machine : i386
>Description:
/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.
>How-To-Repeat:
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.
>Fix:
Have nslookup read from stdin.
_host1=`echo $_host1 | nslookup | grep '^Name: ' | \
So if $_host1 is empty nslookup won't suspend the boot process.
>Release-Note:
>Audit-Trail:
>Unformatted: