diff options
author | Ulrich Drepper <drepper@redhat.com> | 2001-11-28 20:21:09 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2001-11-28 20:21:09 +0000 |
commit | 0d10e978afd79e352d124fe6a3617db751c80ad2 (patch) | |
tree | 4597b361da00339a6332cd47d2f5fe32a40121c9 /nss | |
parent | df06960c2ec5fb987dad6ac05553402bead9f1c0 (diff) | |
download | glibc-0d10e978afd79e352d124fe6a3617db751c80ad2.tar.gz |
(_nss_files_get##name##_r): Set herrnop to NETDB_INTERNAL if we run out of
buffer space.
Diffstat (limited to 'nss')
-rw-r--r-- | nss/nss_files/files-hosts.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/nss/nss_files/files-hosts.c b/nss/nss_files/files-hosts.c index eaa7be7455..12ad9cf5a5 100644 --- a/nss/nss_files/files-hosts.c +++ b/nss/nss_files/files-hosts.c @@ -1,5 +1,5 @@ /* Hosts file parser in nss_files module. - Copyright (C) 1996, 1997, 1998, 1999, 2000 Free Software Foundation, Inc. + Copyright (C) 1996,1997,1998,1999,2000,2001 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 @@ -173,6 +173,7 @@ _nss_files_get##name##_r (proto, \ >= buffer + buflen) \ { \ *errnop = ERANGE; \ + *herrnop = NETDB_INTERNAL; \ status = NSS_STATUS_TRYAGAIN; \ break; \ } \ |