]> git.decadent.org.uk Git - nfs-utils.git/commitdiff
Imported Debian patch 1.1.1-2 debian/1%1.1.1-2
authorSteinar H. Gunderson <sesse@debian.org>
Sun, 21 Oct 2007 10:52:01 +0000 (12:52 +0200)
committerBen Hutchings <ben@decadent.org.uk>
Wed, 14 Jul 2010 01:59:15 +0000 (02:59 +0100)
debian/changelog
debian/patches/07-amd64-logging-segfault.patch [new file with mode: 0644]
debian/patches/series
debian/rules

index bafed03af0bc8d65547167ae15770f2e7e7f8ce1..eeb9aa28cc96b574a45e0d36a81e651703e7fd3e 100644 (file)
@@ -1,3 +1,10 @@
+nfs-utils (1:1.1.1-2) unstable; urgency=low
+
+  * 07-amd64-logging-segfault.patch: New patch from Steve Langasek, fixes
+    segfault in logging code on amd64. (Closes: #447407, #447451)
+
+ -- Steinar H. Gunderson <sesse@debian.org>  Sun, 21 Oct 2007 12:52:01 +0200
+
 nfs-utils (1:1.1.1-1) unstable; urgency=low
 
   * New upstream release.
diff --git a/debian/patches/07-amd64-logging-segfault.patch b/debian/patches/07-amd64-logging-segfault.patch
new file mode 100644 (file)
index 0000000..49ebdd8
--- /dev/null
@@ -0,0 +1,32 @@
+Index: nfs-utils-1.1.1/support/nfs/xlog.c
+===================================================================
+--- nfs-utils-1.1.1.orig/support/nfs/xlog.c
++++ nfs-utils-1.1.1/support/nfs/xlog.c
+@@ -133,9 +133,13 @@ xlog_enabled(int fac)
+ void
+ xlog_backend(int kind, const char *fmt, va_list args)
+ {
++      va_list args2;
++
+       if (!(kind & (L_ALL)) && !(logging && (kind & logmask)))
+               return;
++      va_copy(args2, args);
++
+       if (log_syslog) {
+               switch (kind) {
+               case L_FATAL:
+@@ -172,10 +176,12 @@ xlog_backend(int kind, const char *fmt, 
+               fprintf(stderr, "%s: ", log_name);
+ #endif
+-              vfprintf(stderr, fmt, args);
++              vfprintf(stderr, fmt, args2);
+               fprintf(stderr, "\n");
+       }
++      va_end(args2);
++
+       if (kind == L_FATAL)
+               exit(1);
+ }
index 94a7f9457499f886b1b3951d98fb5f0f30d3f348..cce0ff418b1f19b75193bd00af65c70c614c3031 100644 (file)
@@ -2,3 +2,4 @@
 03-sm-notify-in-sbin.patch
 05-ignore-quota-option.patch
 06-gssd-manpage-typo.patch
+07-amd64-logging-segfault.patch
index dcc45131755716075d6078f2a21ec06badc8822e..ca1225783a4a61882b8430c0eed03fac4b2a616c 100755 (executable)
@@ -39,7 +39,7 @@ binary-arch: build
        dh_installman
        dh_link
        dh_installchangelogs ChangeLog
-       dh_strip
+       #dh_strip
        dh_compress
        dh_fixperms -Xmount.nfs
        dh_installdeb