summaryrefslogtreecommitdiff
path: root/security/putty/patches
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2012-02-22 15:30:20 +0000
committerwiz <wiz@pkgsrc.org>2012-02-22 15:30:20 +0000
commit48206d6543cdbb85dcc3e64a19ef8836535fe05a (patch)
treee9dd1c526725a7b3fb87a5d5dfa46055caeae0de /security/putty/patches
parent7466b5a94b4b8e51f53a1787d8d5fc79c0e12aea (diff)
downloadpkgsrc-48206d6543cdbb85dcc3e64a19ef8836535fe05a.tar.gz
Add a patch from the putty-devel package (not needed on my -current though)
Diffstat (limited to 'security/putty/patches')
-rw-r--r--security/putty/patches/patch-ldisc.c33
1 files changed, 33 insertions, 0 deletions
diff --git a/security/putty/patches/patch-ldisc.c b/security/putty/patches/patch-ldisc.c
new file mode 100644
index 00000000000..78f26423494
--- /dev/null
+++ b/security/putty/patches/patch-ldisc.c
@@ -0,0 +1,33 @@
+$NetBSD: patch-ldisc.c,v 1.1 2012/02/22 15:30:20 wiz Exp $
+
+pwrite is a standard system call
+
+--- ldisc.c.orig 2010-09-09 14:32:25.000000000 +0000
++++ ldisc.c
+@@ -41,7 +41,7 @@ static int plen(Ldisc ldisc, unsigned ch
+ return 4; /* <XY> hex representation */
+ }
+
+-static void pwrite(Ldisc ldisc, unsigned char c)
++static void pwrite_(Ldisc ldisc, unsigned char c)
+ {
+ if ((c >= 32 && c <= 126) ||
+ (!in_utf(ldisc->term) && c >= 0xA0) ||
+@@ -217,7 +217,7 @@ void ldisc_send(void *handle, char *buf,
+ int i;
+ c_write(ldisc, "^R\r\n", 4);
+ for (i = 0; i < ldisc->buflen; i++)
+- pwrite(ldisc, ldisc->buf[i]);
++ pwrite_(ldisc, ldisc->buf[i]);
+ }
+ break;
+ case CTRL('V'): /* quote next char */
+@@ -284,7 +284,7 @@ void ldisc_send(void *handle, char *buf,
+ }
+ ldisc->buf[ldisc->buflen++] = c;
+ if (ECHOING)
+- pwrite(ldisc, (unsigned char) c);
++ pwrite_(ldisc, (unsigned char) c);
+ ldisc->quotenext = FALSE;
+ break;
+ }