search for: 5326b5fc4eb9

Displaying 1 result from an estimated 1 matches for "5326b5fc4eb9".

2012 Jun 28
1
[PATCH] klibc: fix gethostname()/getdomainname()
...nname.c +++ b/usr/klibc/getdomainname.c @@ -11,7 +11,7 @@ int getdomainname(char *name, size_t len) { struct utsname un; - if (!uname(&un)) + if (uname(&un)) return -1; if (len < strlen(un.domainname) + 1) { diff --git a/usr/klibc/gethostname.c b/usr/klibc/gethostname.c index 5326b5fc4eb9..120edd943170 100644 --- a/usr/klibc/gethostname.c +++ b/usr/klibc/gethostname.c @@ -11,7 +11,7 @@ int gethostname(char *name, size_t len) { struct utsname un; - if (!uname(&un)) + if (uname(&un)) return -1; if (len < strlen(un.nodename) + 1) { -- 1.7.9.4