summaryrefslogtreecommitdiff
path: root/bind-dyndb-ldap-11.9-bind-9.16.17.patch
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2024-08-01 13:41:46 +0000
committerCoprDistGit <infra@openeuler.org>2024-08-01 13:41:46 +0000
commitb373ebf903f259c520d0767f07976389a6f92f74 (patch)
tree0ecee58642f486a9fdd83ab02f3e3b98875cb57a /bind-dyndb-ldap-11.9-bind-9.16.17.patch
parent4f8d731574eaa01a6386b1c4d4350067b31ed898 (diff)
automatic import of bind-dyndb-ldapopeneuler24.03_LTSopeneuler23.09
Diffstat (limited to 'bind-dyndb-ldap-11.9-bind-9.16.17.patch')
-rw-r--r--bind-dyndb-ldap-11.9-bind-9.16.17.patch35
1 files changed, 35 insertions, 0 deletions
diff --git a/bind-dyndb-ldap-11.9-bind-9.16.17.patch b/bind-dyndb-ldap-11.9-bind-9.16.17.patch
new file mode 100644
index 0000000..3f3edbc
--- /dev/null
+++ b/bind-dyndb-ldap-11.9-bind-9.16.17.patch
@@ -0,0 +1,35 @@
+From d7d3032de7f5d3dd3cffea6064549b63a9ad7d59 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Petr=20Men=C5=A1=C3=ADk?= <pemensik@redhat.com>
+Date: Thu, 17 Jun 2021 17:57:52 +0200
+Subject: [PATCH] Skip isc_bind9 check on BIND 9.16.17+
+
+Reference variable refvar from dns_dyndbctx_t were removed. Removed was
+also flag requesting different namespace. Skip that check on last stable
+version, it should eval to false on all versions anyway.
+---
+ src/ldap_driver.c | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/src/ldap_driver.c b/src/ldap_driver.c
+index e9f1005ee..5f9e00af1 100644
+--- a/src/ldap_driver.c
++++ b/src/ldap_driver.c
+@@ -1156,6 +1156,7 @@ dyndb_init(isc_mem_t *mctx, const char *name, const char *parameters,
+ RUNTIME_CHECK(isc_once_do(&library_init_once, library_init)
+ == ISC_R_SUCCESS);
+
++#if LIBDNS_VERSION_MAJOR < 1617
+ /*
+ * Depending on how dlopen() was called, we may not have
+ * access to named's global namespace, in which case we need
+@@ -1168,6 +1169,7 @@ dyndb_init(isc_mem_t *mctx, const char *name, const char *parameters,
+ isc_hash_set_initializer(dctx->hashinit);
+ log_debug(5, "registering library from dynamic ldap driver, %p != %p.", dctx->refvar, &isc_bind9);
+ }
++#endif
+
+ log_debug(2, "registering dynamic ldap driver for %s.", name);
+
+--
+2.31.1
+