This is the mail archive of the
libc-hacker@sourceware.cygnus.com
mailing list for the glibc project.
Re: getXXent.c endless loop
- To: Thorsten Kukuk <kukuk@weber-eb.uni-paderborn.de>
- Subject: Re: getXXent.c endless loop
- From: Ulrich Drepper <drepper@cygnus.com>
- Date: 09 Aug 1998 13:19:13 -0700
- Cc: libc-hacker@cygnus.com
- References: <199808091953.VAA29080@vt.uni-paderborn.de>
- Reply-To: drepper@cygnus.com (Ulrich Drepper)
Thorsten Kukuk <kukuk@weber-eb.uni-paderborn.de> writes:
> With all backends. The problem is, that there is no error. We have no
> more entrys, and returns. But errno is set to ERANGE from an earlier
> to small buffer, and getXXent thinks we need more memory.
errno should always be set. I have only looked at the 2.1 sources and
here for files/db which seem to be ok.
--
---------------. drepper at gnu.org ,-. 1325 Chesapeake Terrace
Ulrich Drepper \ ,-------------------' \ Sunnyvale, CA 94089 USA
Cygnus Solutions `--' drepper at cygnus.com `------------------------