mirror of
git://sourceware.org/git/glibc.git
synced 2025-01-18 12:16:13 +08:00
Update.
1999-09-23 Ulrich Drepper <drepper@cygnus.com> * nis/nss_compat/compat-pwd.c (internal_getpwuid_r): Set errno in one more case.
This commit is contained in:
parent
9df541684a
commit
d614ad0952
@ -1,3 +1,8 @@
|
||||
1999-09-23 Ulrich Drepper <drepper@cygnus.com>
|
||||
|
||||
* nis/nss_compat/compat-pwd.c (internal_getpwuid_r): Set errno in
|
||||
one more case.
|
||||
|
||||
1999-09-22 Andreas Jaeger <aj@suse.de>
|
||||
|
||||
* stdio-common/tstscanf.c (main): Add test case from PR libc/1313
|
||||
|
@ -1451,7 +1451,10 @@ internal_getpwuid_r (uid_t uid, struct passwd *result, ent_t *ent,
|
||||
buffer[buflen - 1] = '\xff';
|
||||
p = fgets (buffer, buflen, ent->stream);
|
||||
if (p == NULL && feof (ent->stream))
|
||||
return NSS_STATUS_NOTFOUND;
|
||||
{
|
||||
*errnop = ENOENT;
|
||||
return NSS_STATUS_NOTFOUND;
|
||||
}
|
||||
if (p == NULL || buffer[buflen - 1] != '\xff')
|
||||
{
|
||||
fsetpos (ent->stream, &pos);
|
||||
|
Loading…
Reference in New Issue
Block a user