This is the mail archive of the libc-hacker@sourceware.cygnus.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: getXXent.c endless loop


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   `------------------------


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]