summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Hanselmann <hansmi@gentoo.org>2004-12-08 20:09:05 +0000
committerMichael Hanselmann <hansmi@gentoo.org>2004-12-08 20:09:05 +0000
commit3addc138038674b2c8a46ad7acbadc68271e081c (patch)
tree83670521500f6f41ca940d50d30c41cd3e6dc71c /net-misc/netkit-rsh/files
parentStable on x86 wrt bug 73592 (Manifest recommit) (diff)
downloadgentoo-2-3addc138038674b2c8a46ad7acbadc68271e081c.tar.gz
gentoo-2-3addc138038674b2c8a46ad7acbadc68271e081c.tar.bz2
gentoo-2-3addc138038674b2c8a46ad7acbadc68271e081c.zip
Added a small patch to prevent from segfaulting on ppc
Diffstat (limited to 'net-misc/netkit-rsh/files')
-rw-r--r--net-misc/netkit-rsh/files/va_start.diff29
1 files changed, 29 insertions, 0 deletions
diff --git a/net-misc/netkit-rsh/files/va_start.diff b/net-misc/netkit-rsh/files/va_start.diff
new file mode 100644
index 000000000000..e3ed0090f7dd
--- /dev/null
+++ b/net-misc/netkit-rsh/files/va_start.diff
@@ -0,0 +1,29 @@
+--- netkit-rsh-0.17/rcp/rcp.c.org 2004-11-24 19:15:02.000000000 +0300
++++ netkit-rsh-0.17/rcp/rcp.c 2004-11-24 19:22:47.000000000 +0300
+@@ -877,17 +877,22 @@ error(const char *fmt, ...)
+ static FILE *fp;
+ va_list ap;
+
+- va_start(ap, fmt);
+-
+ ++errs;
+ if (!fp && !(fp = fdopen(rem, "w")))
+ return;
++
++ va_start(ap, fmt);
+ fprintf(fp, "%c", 0x01);
+ vfprintf(fp, fmt, ap);
+ fflush(fp);
+- if (!iamremote) vfprintf(stderr, fmt, ap);
+-
+ va_end(ap);
++
++ if (!iamremote) {
++ va_start(ap, fmt);
++ vfprintf(stderr, fmt, ap);
++ va_end(ap);
++ }
++
+ }
+
+ static void