summaryrefslogtreecommitdiff
path: root/security
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2011-12-05 22:55:36 +0000
committerjoerg <joerg@pkgsrc.org>2011-12-05 22:55:36 +0000
commitf8927b771c263f715c4b35e05333b220d794a191 (patch)
tree2e2009eff55536c49d753033e8ad1c4214bb9b5f /security
parent992996353fa7c9c3ae5724d8132a345aaa7a1b23 (diff)
downloadpkgsrc-f8927b771c263f715c4b35e05333b220d794a191.tar.gz
pwrite is a standard system call
Diffstat (limited to 'security')
-rw-r--r--security/putty-devel/distinfo3
-rw-r--r--security/putty-devel/patches/patch-ldisc.c31
2 files changed, 33 insertions, 1 deletions
diff --git a/security/putty-devel/distinfo b/security/putty-devel/distinfo
index b0dd78c7751..d5d4f63498e 100644
--- a/security/putty-devel/distinfo
+++ b/security/putty-devel/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.1.1.1 2009/09/07 18:01:43 ahoka Exp $
+$NetBSD: distinfo,v 1.2 2011/12/05 22:55:36 joerg Exp $
SHA1 (putty-0.60-2009-09-06.tar.gz) = d7e22f692e8a427d0d00835de7cf6b5a22b9d4dc
RMD160 (putty-0.60-2009-09-06.tar.gz) = 178e4748e31a71336d886b754091a32acce1f298
@@ -8,3 +8,4 @@ SHA1 (patch-ak) = 2ca42d1ea913505d7d265a3fde71e09aa292d75f
SHA1 (patch-al) = dd8d49697806d9087b9691c3bb48fe32b70a77e1
SHA1 (patch-am) = 4dc40f37310f8bcebee3e41bb684c89bae9323e3
SHA1 (patch-an) = 8411855d0a21b0ddb490384990003a3cfc58edcf
+SHA1 (patch-ldisc.c) = 73ff2705b004d13e5f828d89bf2d34a6756639a9
diff --git a/security/putty-devel/patches/patch-ldisc.c b/security/putty-devel/patches/patch-ldisc.c
new file mode 100644
index 00000000000..e8296161b46
--- /dev/null
+++ b/security/putty-devel/patches/patch-ldisc.c
@@ -0,0 +1,31 @@
+$NetBSD: patch-ldisc.c,v 1.1 2011/12/05 22:55:36 joerg Exp $
+
+--- ldisc.c.orig 2011-12-05 21:43:46.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;
+ }