From 738d1a5a43e97ee81d7b62a3c7a5f754f5b51b82 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Mon, 28 Jun 1999 12:43:04 +0000 Subject: Update. 1999-06-28 Ulrich Drepper * sysdeps/unix/sysv/linux/gethostid.c: Test for gethostbyname_r function correctly. * sunrpc/getrpcport.c: Test for gethostbyname_r function correctly. * sunrpc/clnt_simp.c: Test for gethostbyname_r function correctly. * sunrpc/clnt_gen.c: Test for gethostbyname_r and getprotobyname_r functions correctly. * inet/rexec.c (rexec): Test for gethostbyname_r result correctly. * inet/rcmd.c: Test for gethostbyname_r result correctly. Optimize file reading a bit. * sysdeps/generic/glob.c: Test for getpwnam_r result correctly. 1999-06-28 Andreas Jaeger * manual/string.texi (Copying and Concatenation): Mention that strndup is a GNU extension. 1999-06-28 Andreas Jaeger * pwd/getpw.c (__getpw): Fix check for error return. --- pwd/getpw.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pwd') diff --git a/pwd/getpw.c b/pwd/getpw.c index 52c3db7afb..8bfb02eb8b 100644 --- a/pwd/getpw.c +++ b/pwd/getpw.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1991, 1992, 1996, 1998 Free Software Foundation, Inc. +/* Copyright (C) 1991, 1992, 1996, 1998, 1999 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -47,7 +47,7 @@ __getpw (uid, buf) buflen = __sysconf (_SC_GETPW_R_SIZE_MAX); tmpbuf = alloca (buflen); - if (__getpwuid_r (uid, &resbuf, tmpbuf, buflen, &p) < 0) + if (__getpwuid_r (uid, &resbuf, tmpbuf, buflen, &p) != 0) return -1; if (sprintf (buf, "%s:%s:%lu:%lu:%s:%s:%s", p->pw_name, p->pw_passwd, -- cgit 1.4.1