aboutsummaryrefslogtreecommitdiff
path: root/shadow/fgetspent_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 /shadow/fgetspent_r.c
parent0f1e40d49c1d4871fa9d7b7efdc7fca7f5ac01c0 (diff)
downloadglibc-26cee9a49c21e42ecf0b6a9b9940244e4d514dac.tar
glibc-26cee9a49c21e42ecf0b6a9b9940244e4d514dac.tar.gz
glibc-26cee9a49c21e42ecf0b6a9b9940244e4d514dac.tar.bz2
glibc-26cee9a49c21e42ecf0b6a9b9940244e4d514dac.zip
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 'shadow/fgetspent_r.c')
-rw-r--r--shadow/fgetspent_r.c1
1 files changed, 1 insertions, 0 deletions
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')