2011-07-04 15:26:19 +02:00
|
|
|
See:
|
|
|
|
http://sourceware.org/bugzilla/show_bug.cgi?id=11928
|
|
|
|
|
2012-04-19 13:14:21 +02:00
|
|
|
Index: glibc-2.15/nscd/aicache.c
|
|
|
|
===================================================================
|
|
|
|
--- glibc-2.15.orig/nscd/aicache.c
|
|
|
|
+++ glibc-2.15/nscd/aicache.c
|
2010-11-01 23:13:24 +01:00
|
|
|
@@ -26,6 +26,7 @@
|
|
|
|
#include <time.h>
|
|
|
|
#include <unistd.h>
|
|
|
|
#include <sys/mman.h>
|
|
|
|
+#include <resolv/res_hconf.h>
|
|
|
|
|
|
|
|
#include "dbg_log.h"
|
|
|
|
#include "nscd.h"
|
2012-04-19 13:14:21 +02:00
|
|
|
@@ -103,6 +104,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
|
2012-04-19 13:14:21 +02:00
|
|
|
Index: glibc-2.15/resolv/res_hconf.c
|
|
|
|
===================================================================
|
|
|
|
--- glibc-2.15.orig/resolv/res_hconf.c
|
|
|
|
+++ glibc-2.15/resolv/res_hconf.c
|
|
|
|
@@ -83,7 +83,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 *
|