projects
/
kopensolaris-gnu
/
glibc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0b96220
)
(__fgetspent_r): Set errno to ENOENT for returning after last entry.
author
drepper
<drepper>
Thu, 10 Jun 1999 00:21:33 +0000
(
00:21
+0000)
committer
drepper
<drepper>
Thu, 10 Jun 1999 00:21:33 +0000
(
00:21
+0000)
shadow/fgetspent_r.c
patch
|
blob
|
history
diff --git
a/shadow/fgetspent_r.c
b/shadow/fgetspent_r.c
index
a61483c
..
8f7e303
100644
(file)
--- 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')