2011-07-04 15:26:19 +02:00
|
|
|
See:
|
|
|
|
http://sourceware.org/bugzilla/show_bug.cgi?id=11928
|
|
|
|
|
2013-08-06 16:52:55 +02:00
|
|
|
Index: glibc-2.17.90/nscd/aicache.c
|
2012-04-19 13:14:21 +02:00
|
|
|
===================================================================
|
2013-08-06 16:52:55 +02:00
|
|
|
--- glibc-2.17.90.orig/nscd/aicache.c
|
|
|
|
+++ glibc-2.17.90/nscd/aicache.c
|
2012-08-28 14:25:24 +02:00
|
|
|
@@ -25,6 +25,7 @@
|
2010-11-01 23:13:24 +01:00
|
|
|
#include <time.h>
|
|
|
|
#include <unistd.h>
|
|
|
|
#include <sys/mman.h>
|
|
|
|
+#include <resolv/res_hconf.h>
|
|
|
|
|
|
|
|
#include "dbg_log.h"
|
|
|
|
#include "nscd.h"
|
2012-08-28 14:25:24 +02:00
|
|
|
@@ -102,6 +103,8 @@ addhstaiX (struct database_dyn *db, int
|
2010-11-01 23:13:24 +01:00
|
|
|
|
|
|
|
if (__res_maybe_init (&_res, 0) == -1)
|
|
|
|
no_more = 1;
|
|
|
|
+ if (!_res_hconf.initialized)
|
|
|
|
+ _res_hconf_init ();
|
|
|
|
|
|
|
|
/* If we are looking for both IPv4 and IPv6 address we don't want
|
|
|
|
the lookup functions to automatically promote IPv4 addresses to
|
2013-08-06 16:52:55 +02:00
|
|
|
Index: glibc-2.17.90/resolv/res_hconf.c
|
2012-04-19 13:14:21 +02:00
|
|
|
===================================================================
|
2013-08-06 16:52:55 +02:00
|
|
|
--- glibc-2.17.90.orig/resolv/res_hconf.c
|
|
|
|
+++ glibc-2.17.90/resolv/res_hconf.c
|
|
|
|
@@ -81,7 +81,9 @@ static const struct cmd
|
2010-11-01 23:13:24 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
/* Structure containing the state. */
|
|
|
|
+#ifndef NOT_IN_libc
|
|
|
|
struct hconf _res_hconf;
|
|
|
|
+#endif
|
|
|
|
|
|
|
|
/* Skip white space. */
|
|
|
|
static const char *
|