summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-misc/netkit-rsh/files/netkit-rsh-0.10-stdarg.patch')
-rw-r--r--net-misc/netkit-rsh/files/netkit-rsh-0.10-stdarg.patch43
1 files changed, 0 insertions, 43 deletions
diff --git a/net-misc/netkit-rsh/files/netkit-rsh-0.10-stdarg.patch b/net-misc/netkit-rsh/files/netkit-rsh-0.10-stdarg.patch
deleted file mode 100644
index 584e762ec7e8..000000000000
--- a/net-misc/netkit-rsh/files/netkit-rsh-0.10-stdarg.patch
+++ /dev/null
@@ -1,43 +0,0 @@
---- netkit-rsh-0.10/rcp/rcp.c 1999-04-18 05:16:49-04 1.1
-+++ netkit-rsh-0.10/rcp/rcp.c 1999-04-18 05:40:52-04
-@@ -836,19 +836,33 @@
- error(const char *fmt, ...)
- {
- static FILE *fp;
-- va_list ap;
--
-- va_start(ap, fmt);
-+ char buf[1000];
-
- ++errs;
- if (!fp && !(fp = fdopen(rem, "w")))
- return;
-- fprintf(fp, "%c", 0x01);
-- vfprintf(fp, fmt, ap);
-+
-+ /* (fmt,...) might need to go to two streams.
-+ *
-+ * In { va_start ; vfprintf ; vfprintf ; va_end }, second
-+ * vfprintf didn't restart (ie: vfprintf affects ap) (glibc)
-+ *
-+ * Is { va_start ; vfprintf ; va_end} * 2 even allowed?
-+ *
-+ * => Dump (fmt,...) to buffer. */
-+
-+ {
-+ va_list ap;
-+ va_start(ap, fmt);
-+ vsnprintf(buf, sizeof(buf), fmt, ap);
-+ buf[sizeof(buf)-1] = 0;
-+ va_end(ap);
-+ }
-+
-+ fprintf(fp, "%c%s", 0x01, buf);
- fflush(fp);
-- if (!iamremote) vfprintf(stderr, fmt, ap);
-
-- va_end(ap);
-+ if (!iamremote) fputs(buf, stderr);
- }
-
- static void