search for: 61722ca3519b

Displaying 1 result from an estimated 1 matches for "61722ca3519b".

2012 Jun 28
1
[PATCH] klibc: fix gethostname()/getdomainname()
...(like all syscalls) 0 on success. Signed-off-by: Maciej ?enczykowski <maze at google.com> --- usr/klibc/getdomainname.c | 2 +- usr/klibc/gethostname.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/usr/klibc/getdomainname.c b/usr/klibc/getdomainname.c index 61722ca3519b..218ff0baa871 100644 --- a/usr/klibc/getdomainname.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/...