mirror of
git://sourceware.org/git/glibc.git
synced 2025-04-06 14:10:30 +08:00
(internal_getent): In case of an read error do not trust errno value,
set it to ENOENT.
This commit is contained in:
parent
c93547c090
commit
12eabbb53e
@ -185,6 +185,7 @@ internal_getent (struct STRUCTURE *result,
|
||||
if (p == NULL && feof (stream))
|
||||
{
|
||||
/* End of file or read error. */
|
||||
__set_errno (ENOENT);
|
||||
H_ERRNO_SET (HOST_NOT_FOUND);
|
||||
return NSS_STATUS_NOTFOUND;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user