NetBSD-Bugs archive

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

Re: bin/53458: usr.sbin/ypserv/ypinit: error while checking hostname



The following reply was made to PR bin/53458; it has been noted by GNATS.

From: =?UTF-8?Q?Fr=C3=A9d=C3=A9ric_Fauberteau?= <triaxx%NetBSD.org@localhost>
To: gnats-bugs%NetBSD.org@localhost, gnats-admin%netbsd.org@localhost, netbsd-bugs%netbsd.org@localhost
Cc: Martin Husemann <martin%duskware.de@localhost>, christos%zoulas.com@localhost
Subject: Re: bin/53458: usr.sbin/ypserv/ypinit: error while checking hostname
Date: Fri, 20 Jul 2018 12:53:41 +0200

 *Sorry for this from-scratch-mail, but I didn't subscribe the right ml*
 
 defiler# sh -x /usr/sbin/ypinit -m
 + '[' -f /etc/shrc ']'
 + . /etc/shrc
 + 
 PATH='/bin:/usr/sbin:/usr/bin:/sbin:/usr/sbin:/bin:/usr/bin:/usr/pkg/sbin:/usr/pkg/bin:/usr/X11R7/bin:/usr/local/sbin:/usr/local/bin'
 + DOMAINNAME=/bin/domainname
 + HOSTNAME=/bin/hostname
 + ID=/usr/bin/id
 + INSTALL=/usr/bin/install
 + MAKEDBM=/usr/sbin/makedbm
 + YPWHICH=/usr/bin/ypwhich
 + YPXFR=/usr/sbin/ypxfr
 + basename /usr/sbin/ypinit
 + progname=ypinit
 + yp_dir=/var/yp
 + mktemp /tmp/ypservers.XXXXXX
 + tmpfile=/tmp/ypservers.78GZ3v
 + trap 'rm -f /tmp/ypservers.78GZ3v ; exit 0' EXIT INT QUIT
 + umask 077
 + /usr/bin/id -u
 + '[' 0 '!=' 0 ']'
 + getopt 'cl:ms:' -m
 + args=' -m --'
 + '[' 0 -eq 0 ']'
 + set -- -m --
 + for i=-m
 + servertype=master
 + shift
 + for i=--
 + shift
 + break
 + '[' 0 -eq 1 ']'
 + /bin/domainname
 + domain=triaxx
 + '[' -z master ']'
 + '[' -z triaxx ']'
 + defiler.triaxx.org
 defiler.triaxx.org: not found
 + host=''
 + '[' -z '' ']'
 + cat >&2 <<...
 ypinit: The local host's hostname has not been set.
          Please set it with the hostname(1) command.
 + exit 1
 + rm -f /tmp/ypservers.78GZ3v
 + exit 0
 
 I don't really understand why the following script:
 #!/bin/sh
 HOSTNAME=foo
 echo ${HOSTNAME}
 
 produces the following output:
 defiler.triaxx.org
 


Home | Main Index | Thread Index | Old Index