nfs-utils and x86_64 architectures
lazyape
lazyape at gmail.com
Sat Jan 19 15:23:40 CET 2008
i use lvu submit to submit a correct nfs-utils module but i don't know how to send the patch so i write it here
--- nfs-utils-1.1.1/support/nfs/xlog.c
+++ nfs-utils-1.1.1/support/nfs/xlog.c
@@ -133,9 +133,13 @@
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 @@
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);
}
this patch fixes exportfs segfaults
--
<lazyape at gmail.com>
More information about the Lunar-dev
mailing list