From 26cee9a49c21e42ecf0b6a9b9940244e4d514dac Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Thu, 10 Jun 1999 00:22:29 +0000 Subject: Update. 1999-06-10 Ulrich Drepper * shadow/fgetspent_r.c (__fgetspent_r): Set errno to ENOENT for returning after last entry. * pwd/fgetpwent_r.c (__fgetpwent_r): Likewise. --- pwd/fgetpwent_r.c | 1 + 1 file changed, 1 insertion(+) (limited to 'pwd') diff --git a/pwd/fgetpwent_r.c b/pwd/fgetpwent_r.c index c2a746d..33f49ea 100644 --- a/pwd/fgetpwent_r.c +++ b/pwd/fgetpwent_r.c @@ -86,6 +86,7 @@ __fgetpwent_r (FILE *stream, struct passwd *resbuf, char *buffer, { funlockfile (stream); *result = NULL; + __set_errno (ENOENT); return errno; } if (p == NULL || buffer[buflen - 1] != '\xff') -- cgit v1.1