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

Re: Uname



Most likely your hostname has not been set, i.e. you have no /etc/hostname
file.  Currently if there is an error opening the file, gethostname and
uname will fail and return the error code.  I just changed it to detect
ENOENT and return an empty value instead, which is consistent with what
others systems do when the hostname has not yet been set.

Try setting your hostname with the hostname command, or with:

	echo hurd.mydomain.com > /etc/hostname

or just "touch /etc/hostname" to get an emtpy file so the error goes away.


Reply to: