Skip to content
Commit 507fe027 authored by Samuel Thibault's avatar Samuel Thibault
Browse files

hurd: fix gethostname(NULL, 0)

	* hurd/get-host.c (_hurd_get_host_config): Also check that more == 0
	before assuming that the file is empty.  Avoid testing buffer content
	when nread == 0.
parent 7bbbb4b9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment