[packages/bind] fix for "Segmentation fault" in nsupdate
sls
sls at pld-linux.org
Tue Aug 21 16:33:08 CEST 2012
commit bd66dff552629d143cf39da4dba9acba41d842c3
Author: Szymon Siwek <Szymon.Siwek at gmail.com>
Date: Tue Aug 21 16:30:06 2012 +0200
fix for "Segmentation fault" in nsupdate
$ nsupdate
> update
Segmentation fault
from https://bugs.archlinux.org/task/30139?getfile=8868
(they say: "The upstream bug reference number is 29550")
bind.spec | 2 ++
nsupdate_segfault.patch | 19 +++++++++++++++++++
2 files changed, 21 insertions(+)
---
diff --git a/bind.spec b/bind.spec
index 91ba838..0a19a15 100644
--- a/bind.spec
+++ b/bind.spec
@@ -68,6 +68,7 @@ Patch2: %{name}-pmake.patch
Patch3: %{name}-sdb-ldap.patch
Patch4: %{name}-ac-libs.patch
Patch5: %{name}-edns-client-subnet.patch
+Patch6: nsupdate_segfault.patch
URL: https://www.isc.org/software/bind
BuildRequires: autoconf >= 2.59
BuildRequires: automake
@@ -363,6 +364,7 @@ Schemat BIND dla openldap.
%{?with_ldap:%patch3 -p1}
%patch4 -p1
%{?with_hip:mv bind-hip/hip_55.[ch] lib/dns/rdata/generic}
+%patch6 -p0
%{?with_edns_cli:%patch5 -p0}
diff --git a/nsupdate_segfault.patch b/nsupdate_segfault.patch
new file mode 100644
index 0000000..eff9c2c
--- /dev/null
+++ b/nsupdate_segfault.patch
@@ -0,0 +1,19 @@
+fix for "Segmentation fault" in nsupdate
+
+ $ nsupdate
+ > update
+ Segmentation fault
+
+from https://bugs.archlinux.org/task/30139?getfile=8868
+(they say: "The upstream bug reference number is 29550")
+--- /home/bisson/Desktop/bind-9.9.1-P1/bin/nsupdate/nsupdate.c 2012-06-02 01:29:52.000000000 +1000
++++ bin/nsupdate/nsupdate.c 2012-06-06 02:50:37.894357220 +1000
+@@ -376,7 +376,7 @@
+ char sc, dc;
+
+ if (string == NULL)
+- return (NULL);
++ return &string;
+
+ for (; *string != '\0'; string++) {
+ sc = *string;
More information about the pld-cvs-commit
mailing list