submitted-missing-etc-hosts
authorGNU Libc Maintainers <debian-glibc@lists.debian.org>
Tue, 7 Sep 2021 19:57:34 +0000 (20:57 +0100)
committerAurelien Jarno <aurel32@debian.org>
Tue, 7 Sep 2021 19:57:34 +0000 (20:57 +0100)
Gbp-Pq: Topic any
Gbp-Pq: Name submitted-missing-etc-hosts.diff

nss/nss_files/files-hosts.c

index 9f0ed6f0856e61df848e365224c24c9aa7a483e5..183ca8cb63de5788c58caa000fd11afe9b9c3a8b 100644 (file)
@@ -485,7 +485,7 @@ _nss_files_gethostbyname4_r (const char *name, struct gaih_addrtuple **pat,
   else
     {
       *errnop = errno;
-      *herrnop = NO_DATA;
+      *herrnop = HOST_NOT_FOUND;
     }
 
   return status;