Subject: bin/4432: ypinit sets variables incorrectly
To: None <gnats-bugs@gnats.netbsd.org>
From: Ty Sarna <tsarna@endicor.com>
List: netbsd-bugs
Date: 11/04/1997 23:20:44
>Number: 4432
>Category: bin
>Synopsis: ypinit sets variables incorrectly
>Confidential: no
>Severity: critical
>Priority: high
>Responsible: bin-bug-people (Utility Bug People)
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Nov 4 21:35:02 1997
>Last-Modified:
>Originator: Ty Sarna
>Organization:
Endicor Technologies, Inc., San Antonio, Texas
>Release: 1.3_ALPHA 10/30/97
>Environment:
System: NetBSD lotharon.endicor.com 1.2G-970901 NetBSD 1.2G-970901 (LOTHARON) #3: Sat Sep 13 17:44:24 CDT 1997 tsarna@lotharon.endicor.com:/usr/src/sys/arch/sun3/compile/LOTHARON sun3
>Description:
ypinit doesn't work. It tries to set up variables, eg.
$DOMAINNAME is the program to run to get the domainname, etc.
Unfortunately it does "DOMAINNAME=<tab>/bin/domainname".
The tab causes it to run domainname with the variable DOMAINNAME
set empty, rather than setting DOMAINNAME to /bin/domainname.
Likewise for a few other variables.
>How-To-Repeat:
$ ypinit
[prints domain name, host name, tries to run ypwhich, ypxfr,
makedbm, and /var/yp without args, and generally doesn't work]
>Fix:
Delete the tabs. I put a high priority on this one because
it's a fairly serious yet easy to fix bug, and one that I
hope can be fixed for 1.3. It'd be kind of embarrasing for
1.3 to ship with broken yp server capabilities
because of something trivial like this.
>Audit-Trail:
>Unformatted: