(internal_getent): In case of an read error do not trust errno value,

set it to ENOENT.
This commit is contained in:
Ulrich Drepper 1998-08-12 12:29:15 +00:00
parent c93547c090
commit 12eabbb53e

View File

@ -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;
}