On Mon, May 17, 2021 at 11:24:25AM +0200, Hrvoje Popovski wrote:
> Hi all,
> 
> today after sysupgrade i' getting this error with reposync
> 
> r620-1# su -m cvs -c "reposync -s src rsync://ftp.hostserver.de/cvs
> /home/cvs"
> reposync: rsync error: rsync: did not see server greeting
> rsync error: error starting client-server protocol (code 5) at
> main.c(1814) [Receiver=3.2.3]
> 
> 
> i tried reposync on a few hosts and error is the same ..
> 

This is a bug introduced in ssh.c -r1.554. Fixed in ssh.c -r1.556:

Index: ssh.c
===================================================================
RCS file: /cvs/src/usr.bin/ssh/ssh.c,v
retrieving revision 1.555
retrieving revision 1.556
diff -u -p -r1.555 -r1.556
--- ssh.c       14 May 2021 05:20:32 -0000      1.555
+++ ssh.c       17 May 2021 11:43:16 -0000      1.556
@@ -1,4 +1,4 @@
-/* $OpenBSD: ssh.c,v 1.555 2021/05/14 05:20:32 djm Exp $ */
+/* $OpenBSD: ssh.c,v 1.556 2021/05/17 11:43:16 djm Exp $ */
 /*
  * Author: Tatu Ylonen <[email protected]>
  * Copyright (c) 1995 Tatu Ylonen <[email protected]>, Espoo, Finland
@@ -2126,7 +2126,8 @@ ssh_session2(struct ssh *ssh, const stru
                stdin_null_flag = 1;
                no_shell_flag = 1;
                tty_flag = 0;
-               if (!fork_after_authentication_flag && !ono_shell_flag)
+               if (!fork_after_authentication_flag &&
+                   (!ono_shell_flag || options.stdio_forward_host != NULL))
                        need_controlpersist_detach = 1;
                fork_after_authentication_flag = 1;
        }

Reply via email to