submitted-missing-etc-hosts
authorGNU Libc Maintainers <debian-glibc@lists.debian.org>
Wed, 7 Feb 2024 18:25:17 +0000 (18:25 +0000)
committerRaspbian forward porter <root@raspbian.org>
Wed, 7 Feb 2024 18:25:17 +0000 (18:25 +0000)
Gbp-Pq: Topic any
Gbp-Pq: Name submitted-missing-etc-hosts.diff

nss/nss_files/files-hosts.c

index 05b60fec432190cf9f34df97987efd2866b19c45..fcb04fadd1f47f9aeb8140675e2ea4580fc8989c 100644 (file)
@@ -487,7 +487,7 @@ _nss_files_gethostbyname4_r (const char *name, struct gaih_addrtuple **pat,
   else
     {
       *errnop = errno;
-      *herrnop = NO_DATA;
+      *herrnop = HOST_NOT_FOUND;
     }
 
   return status;