mirror of git://sourceware.org/git/glibc.git
(uname): Deref UNAME to get nodename.
This commit is contained in:
parent
ed30638ace
commit
e894c64677
|
@ -30,7 +30,7 @@ uname (struct utsname *uname)
|
||||||
|
|
||||||
/* Fill in the hostname, which the proc server doesn't know. */
|
/* Fill in the hostname, which the proc server doesn't know. */
|
||||||
err = errno;
|
err = errno;
|
||||||
if (__gethostname (uname.nodename, sizeof uname.nodename) < 0)
|
if (__gethostname (uname->nodename, sizeof uname->nodename) < 0)
|
||||||
{
|
{
|
||||||
if (errno == ENAMETOOLONG)
|
if (errno == ENAMETOOLONG)
|
||||||
/* Ignore the error of the buffer being too small.
|
/* Ignore the error of the buffer being too small.
|
||||||
|
|
Loading…
Reference in New Issue