submitted-missing-etc-hosts
authorGNU Libc Maintainers <debian-glibc@lists.debian.org>
Sat, 3 Mar 2018 10:47:56 +0000 (10:47 +0000)
committerAurelien Jarno <aurel32@debian.org>
Sat, 3 Mar 2018 10:47:56 +0000 (10:47 +0000)
Gbp-Pq: Topic any
Gbp-Pq: Name submitted-missing-etc-hosts.diff

nss/nss_files/files-hosts.c

index 87c0af8cfe8d89948d19cfb7707745d5e71b5906..90ba9d4f26fd905b7d2d5c064b18cf8dac4b74c7 100644 (file)
@@ -499,7 +499,7 @@ _nss_files_gethostbyname4_r (const char *name, struct gaih_addrtuple **pat,
   else
     {
       *errnop = errno;
-      *herrnop = NO_DATA;
+      *herrnop = HOST_NOT_FOUND;
     }
 
   return status;