X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=debian%2Fpatches%2F07-amd64-logging-segfault.patch;fp=debian%2Fpatches%2F07-amd64-logging-segfault.patch;h=49ebdd87638e39cc07b3113e8a7328bfac89d1d9;hb=1f66030ebaa071c30d0057864167256f662512f5;hp=0000000000000000000000000000000000000000;hpb=23847ebc8bddb9771ab037d935b66d78ace5d15e;p=nfs-utils.git diff --git a/debian/patches/07-amd64-logging-segfault.patch b/debian/patches/07-amd64-logging-segfault.patch new file mode 100644 index 0000000..49ebdd8 --- /dev/null +++ b/debian/patches/07-amd64-logging-segfault.patch @@ -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); + }