pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/security/putty putty: Fix PuTTY wish pscp-port-0
details: https://anonhg.NetBSD.org/pkgsrc/rev/d215c74fe77a
branches: trunk
changeset: 442453:d215c74fe77a
user: ryoon <ryoon%pkgsrc.org@localhost>
date: Tue Nov 24 15:38:36 2020 +0000
description:
putty: Fix PuTTY wish pscp-port-0
https://www.chiark.greenend.org.uk/~sgtatham/putty/wishlist/pscp-port-0.html
diffstat:
security/putty/Makefile | 4 ++--
security/putty/distinfo | 3 ++-
security/putty/patches/patch-pscp.c | 35 +++++++++++++++++++++++++++++++++++
3 files changed, 39 insertions(+), 3 deletions(-)
diffs (70 lines):
diff -r 307ff37a3f6e -r d215c74fe77a security/putty/Makefile
--- a/security/putty/Makefile Tue Nov 24 15:03:22 2020 +0000
+++ b/security/putty/Makefile Tue Nov 24 15:38:36 2020 +0000
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.65 2020/08/18 03:44:52 tnn Exp $
+# $NetBSD: Makefile,v 1.66 2020/11/24 15:38:36 ryoon Exp $
#
DISTNAME= putty-0.74
-PKGREVISION= 1
+PKGREVISION= 2
CATEGORIES= security
MASTER_SITES= http://the.earth.li/~sgtatham/putty/${PKGVERSION_NOREV}/
diff -r 307ff37a3f6e -r d215c74fe77a security/putty/distinfo
--- a/security/putty/distinfo Tue Nov 24 15:03:22 2020 +0000
+++ b/security/putty/distinfo Tue Nov 24 15:38:36 2020 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.30 2020/07/30 13:32:33 tnn Exp $
+$NetBSD: distinfo,v 1.31 2020/11/24 15:38:36 ryoon Exp $
SHA1 (putty-0.74.tar.gz) = 17b160e9720f67f9af9399d7d185b913b81f18fe
RMD160 (putty-0.74.tar.gz) = 0bcc5b606f19379168d19de6f5b764a7c2753bf5
@@ -6,6 +6,7 @@
Size (putty-0.74.tar.gz) = 2476513 bytes
SHA1 (patch-ldisc.c) = cf31a65f920a3ea9b4a70602e4b2fd4d5df8d3e8
SHA1 (patch-misc.c) = fa1c2db8eb20ceaadb4b57b6aefa57f22d2ae26f
+SHA1 (patch-pscp.c) = f8ae20d5027e3a1c3bd53efd7df4480b1d004d78
SHA1 (patch-terminal.c) = 30d6196e371b5369f9ea69e193662a47dbefaa10
SHA1 (patch-timing.c) = a6a492fc8b22c58e2973c854bffa4c8bf71eb6a7
SHA1 (patch-unix_Makefile.gtk) = 7fe7859ad91afb57ef3ba31194ffd2ef784f638d
diff -r 307ff37a3f6e -r d215c74fe77a security/putty/patches/patch-pscp.c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/security/putty/patches/patch-pscp.c Tue Nov 24 15:38:36 2020 +0000
@@ -0,0 +1,35 @@
+$NetBSD: patch-pscp.c,v 1.1 2020/11/24 15:38:36 ryoon Exp $
+
+* Fix https://www.chiark.greenend.org.uk/~sgtatham/putty/wishlist/pscp-port-0.html
+
+--- pscp.c.orig 2020-06-21 17:30:46.000000000 +0000
++++ pscp.c
+@@ -330,7 +330,7 @@ static void do_cmd(char *host, char *use
+ * Force use of SSH. (If they got the protocol wrong we assume the
+ * port is useless too.)
+ */
+- if (conf_get_int(conf, CONF_protocol) != PROT_SSH) {
++ if (!backend_vt_from_proto(conf_get_int(conf, CONF_protocol))) {
+ conf_set_int(conf, CONF_protocol, PROT_SSH);
+ conf_set_int(conf, CONF_port, 22);
+ }
+@@ -454,7 +454,9 @@ static void do_cmd(char *host, char *use
+
+ platform_psftp_pre_conn_setup();
+
+- err = backend_init(&ssh_backend, pscp_seat, &backend, logctx, conf,
++ err = backend_init(backend_vt_from_proto(
++ conf_get_int(conf, CONF_protocol)),
++ pscp_seat, &backend, logctx, conf,
+ conf_get_str(conf, CONF_host),
+ conf_get_int(conf, CONF_port),
+ &realhost, 0,
+@@ -2240,8 +2242,6 @@ int psftp_main(int argc, char *argv[])
+ int i;
+ bool sanitise_stderr = true;
+
+- default_protocol = PROT_SSH;
+-
+ flags = 0
+ #ifdef FLAG_SYNCAGENT
+ | FLAG_SYNCAGENT
Home |
Main Index |
Thread Index |
Old Index