diff options
author | Ulrich Drepper <drepper@redhat.com> | 1999-06-17 12:33:08 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 1999-06-17 12:33:08 +0000 |
commit | 1670698f4a3802bcd26f94e24419f17fa1248861 (patch) | |
tree | 105e5f52b6348ecf52fe030fff9daeb9e05c3289 /nss/getXXbyYY.c | |
parent | 39abffb33770682fabf4cb8068a5044fd846a23f (diff) | |
download | glibc-1670698f4a3802bcd26f94e24419f17fa1248861.zip glibc-1670698f4a3802bcd26f94e24419f17fa1248861.tar.gz glibc-1670698f4a3802bcd26f94e24419f17fa1248861.tar.bz2 |
Update.
* nss/getXXbyYY_r.c: Return error code not -1.
* nss/getXXent_r.c: Likewise.
* nss/getXXbyYY.c: Expect return alue to be ERANGE if buffer is too
small.
* nscd/nscd_getgr_r.c: Return -1 in case nscd is not available and
value > 0 for error.
* nscd/nscd_gethst_r.c: Likewise.
* nscd/nscd_getpw_r.c: Likewise.
1999-06-17 Andreas Jaeger <aj@arthur.rhein-neckar.de>
* sysdeps/unix/sysv/linux/bits/ioctl-types.h: Add missing line
disciplines.
1999-06-14 Andreas Jaeger <aj@arthur.rhein-neckar.de>
* nscd/nscd_nischeck.c: Fix typos.
1999-06-17 Ulrich Drepper <drepper@cygnus.com>
Diffstat (limited to 'nss/getXXbyYY.c')
-rw-r--r-- | nss/getXXbyYY.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/nss/getXXbyYY.c b/nss/getXXbyYY.c index 15cdcba..7a52e9d 100644 --- a/nss/getXXbyYY.c +++ b/nss/getXXbyYY.c @@ -114,12 +114,13 @@ FUNCTION_NAME (ADD_PARAMS) } while (buffer != NULL - && INTERNAL (REENTRANT_NAME) (ADD_VARIABLES, &resbuf, buffer, - buffer_size, &result H_ERRNO_VAR) != 0 + && (INTERNAL (REENTRANT_NAME) (ADD_VARIABLES, &resbuf, buffer, + buffer_size, &result H_ERRNO_VAR) + == ERANGE) #ifdef NEED_H_ERRNO && h_errno_tmp == NETDB_INTERNAL #endif - && errno == ERANGE) + ) { char *new_buf; buffer_size += BUFLEN; |