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: Martin Husemann <martin%duskware.de@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc:
Subject: Re: bin/53458: usr.sbin/ypserv/ypinit: error while checking hostname
Date: Wed, 18 Jul 2018 08:24:24 +0200
On Wed, Jul 18, 2018 at 06:10:00AM +0000, triaxx%NetBSD.org@localhost wrote:
> After inspecting /usr/sbin/ypinit, the line 98 sounds strange to me:
> 97 # Check if hostname is set, don't accept an empty hostname
> 98 host=`${HOSTNAME}`
> 99 if [ -z "${host}" ]; then
Earlier there is:
HOSTNAME=/bin/hostname
so this shold run /bin/hostname and store the output in "host".
Looks perfectly fine to me. Can you run it with "sh -x /usr/sbin/ypinit"
and see what goes wrong?
Martin
Home |
Main Index |
Thread Index |
Old Index