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. --- shadow/fgetspent_r.c | 1 + 1 file changed, 1 insertion(+) (limited to 'shadow/fgetspent_r.c') diff --git a/shadow/fgetspent_r.c b/shadow/fgetspent_r.c index a61483c95a..8f7e303e07 100644 --- a/shadow/fgetspent_r.c +++ b/shadow/fgetspent_r.c @@ -53,6 +53,7 @@ __fgetspent_r (FILE *stream, struct spwd *resbuf, char *buffer, size_t buflen, { funlockfile (stream); *result = NULL; + __set_errno (ENOENT); return errno; } if (p == NULL || buffer[buflen - 1] != '\xff') -- cgit 1.4.1