aboutsummaryrefslogtreecommitdiff
path: root/pwd/fgetpwent_r.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1999-06-10 00:22:29 +0000
committerUlrich Drepper <drepper@redhat.com>1999-06-10 00:22:29 +0000
commit26cee9a49c21e42ecf0b6a9b9940244e4d514dac (patch)
tree6c5bbe3d06c079e9a312ceb4cc6863ac4f94900d /pwd/fgetpwent_r.c
parent0f1e40d49c1d4871fa9d7b7efdc7fca7f5ac01c0 (diff)
downloadglibc-26cee9a49c21e42ecf0b6a9b9940244e4d514dac.zip
glibc-26cee9a49c21e42ecf0b6a9b9940244e4d514dac.tar.gz
glibc-26cee9a49c21e42ecf0b6a9b9940244e4d514dac.tar.bz2
Update.
1999-06-10 Ulrich Drepper <drepper@cygnus.com> * shadow/fgetspent_r.c (__fgetspent_r): Set errno to ENOENT for returning after last entry. * pwd/fgetpwent_r.c (__fgetpwent_r): Likewise.
Diffstat (limited to 'pwd/fgetpwent_r.c')
-rw-r--r--pwd/fgetpwent_r.c1
1 files changed, 1 insertions, 0 deletions
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')