submitted-missing-etc-hosts
authorGNU Libc Maintainers <debian-glibc@lists.debian.org>
Tue, 3 Oct 2023 17:14:06 +0000 (18:14 +0100)
committerAurelien Jarno <aurel32@debian.org>
Tue, 3 Oct 2023 17:14:06 +0000 (18:14 +0100)
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;