submitted-missing-etc-hosts
authorGNU Libc Maintainers <debian-glibc@lists.debian.org>
Sat, 17 May 2025 15:15:43 +0000 (17:15 +0200)
committerAurelien Jarno <aurel32@debian.org>
Sat, 17 May 2025 15:15:43 +0000 (17:15 +0200)
Gbp-Pq: Topic any
Gbp-Pq: Name submitted-missing-etc-hosts.diff

nss/nss_files/files-hosts.c

index d8987c723a5bc92e8a3f53f3a61ecc545118e04b..82f14049381f57bc0a00cd83d22c7877ebc63714 100644 (file)
@@ -493,7 +493,7 @@ _nss_files_gethostbyname4_r (const char *name, struct gaih_addrtuple **pat,
   else
     {
       *errnop = errno;
-      *herrnop = NO_DATA;
+      *herrnop = HOST_NOT_FOUND;
     }
 
   return status;