]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
remove buffer len workaround for NetBSD 4.x
authorDamien Miller <djm@mindrot.org>
Wed, 11 Jan 2023 00:45:17 +0000 (11:45 +1100)
committerDamien Miller <djm@mindrot.org>
Wed, 11 Jan 2023 00:45:17 +0000 (11:45 +1100)
Switching to from pipes to a socketpair for communicating with the
ssh process avoids the (kernel bug?) problem.

scp.c

diff --git a/scp.c b/scp.c
index 543d3b1f3060a8303265d86a05cba2309817bca2..1adff5cec2220d66d06638b1e8507c3c66f3206f 100644 (file)
--- a/scp.c
+++ b/scp.c
@@ -180,7 +180,7 @@ pid_t do_cmd_pid = -1;
 pid_t do_cmd_pid2 = -1;
 
 /* SFTP copy parameters */
-size_t sftp_copy_buflen = 32768; /* XXX NetBSD4 hangs with default value */
+size_t sftp_copy_buflen;
 size_t sftp_nrequests;
 
 /* Needed for sftp */