[openssh-commits] [openssh] 01/01: unbreak scp on NetBSD 4.x

git+noreply at mindrot.org git+noreply at mindrot.org
Fri Jan 6 19:16:10 AEDT 2023


This is an automated email from the git hooks/post-receive script.

djm pushed a commit to branch master
in repository openssh.

commit ab6bb69e251faa8b24f81b25c72ec0120f20cad4
Author: Damien Miller <djm at mindrot.org>
Date:   Fri Jan 6 19:13:36 2023 +1100

    unbreak scp on NetBSD 4.x
    
    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 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scp.c b/scp.c
index 9e74c9d4..93ac8ed7 100644
--- 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 */

-- 
To stop receiving notification emails like this one, please contact
djm at mindrot.org.


More information about the openssh-commits mailing list