]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
unbreak scp on NetBSD 4.x
authorDamien Miller <djm@mindrot.org>
Fri, 6 Jan 2023 08:13:36 +0000 (19:13 +1100)
committerDamien Miller <djm@mindrot.org>
Fri, 6 Jan 2023 08:13:36 +0000 (19:13 +1100)
e555d5cad5 effectively increased the default copy buffer size for SFTP
transfers. This caused NetBSD 4.x to hang during the "copy local file to
remote file in place" scp.sh regression test.

This puts back the original 32KB copy buffer size until we can properly
figure out why.

lots of debugging assistance from dtucker@

scp.c

diff --git a/scp.c b/scp.c
index 9e74c9d4122893f25a66dc412705fceeea42effe..93ac8ed7b543208f245e7305bc964fa038034ea6 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;
+size_t sftp_copy_buflen = 32768; /* XXX NetBSD4 hangs with default value */
 size_t sftp_nrequests;
 
 /* Needed for sftp */