diff options
author | Ulrich Drepper <drepper@redhat.com> | 1999-06-10 00:22:29 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 1999-06-10 00:22:29 +0000 |
commit | 26cee9a49c21e42ecf0b6a9b9940244e4d514dac (patch) | |
tree | 6c5bbe3d06c079e9a312ceb4cc6863ac4f94900d /shadow | |
parent | 0f1e40d49c1d4871fa9d7b7efdc7fca7f5ac01c0 (diff) | |
download | glibc-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 'shadow')
-rw-r--r-- | shadow/fgetspent_r.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/shadow/fgetspent_r.c b/shadow/fgetspent_r.c index a61483c..8f7e303 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') |