]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
(internal_getent): In case of an read error do not trust errno value,
authorUlrich Drepper <drepper@redhat.com>
Wed, 12 Aug 1998 12:29:15 +0000 (12:29 +0000)
committerUlrich Drepper <drepper@redhat.com>
Wed, 12 Aug 1998 12:29:15 +0000 (12:29 +0000)
set it to ENOENT.

nss/nss_files/files-XXX.c

index c1e716d3d0066280cccb34cacf32b9d22920aaa4..8ea6dc2eaec7e2eb6f783487690d0acb97f66998 100644 (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;
        }