]> sourceware.org Git - glibc.git/commit
hurd: fix gethostname(NULL, 0)
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Wed, 6 Sep 2017 22:51:17 +0000 (00:51 +0200)
committerSamuel Thibault <samuel.thibault@ens-lyon.org>
Wed, 6 Sep 2017 22:51:17 +0000 (00:51 +0200)
commit507fe02799e7dbaba9ebaf3264731fc3b928ba77
tree5573377298259c7dd56e105b725aadaaa5ccd1d2
parent7bbbb4b9f7033be9ffbaf691d886b23b363bcf53
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.
ChangeLog
hurd/get-host.c
This page took 0.042355 seconds and 5 git commands to generate.