On Sun, 18 Nov 2018 10:10:30 +1100, Darren Tucker <[email protected]>
wrote:

> On Sun, Nov 18, 2018 at 10:03:20AM +1100, Darren Tucker wrote:

> You can work around it by setting ControlPersist=yes either in
> ~/.ssh/config or via mosh's --ssh option.


 
> ok?

This diff makes mosh work again, thanks!
(ok danj@ fwiw)

> diff --git a/sshconnect.c b/sshconnect.c
> index a700f467..ed86d0d9 100644
> --- a/sshconnect.c
> +++ b/sshconnect.c
> @@ -163,7 +163,8 @@ ssh_proxy_fdpass_connect(struct ssh *ssh, const
> char *host, u_short port,
>                * Stderr is left for non-ControlPersist connections
> is so
>                * error messages may be printed on the user's
> terminal. */
> -             if (debug_flag || !options.control_persist)
> +             if (!debug_flag && options.control_path != NULL &&
> +                 options.control_persist)
>                       stderr_null();
>  
>               argv[0] = shell;
> @@ -245,7 +246,8 @@ ssh_proxy_connect(struct ssh *ssh, const char
> *host, u_short port,
>                * Stderr is left for non-ControlPersist connections
> is so
>                * error messages may be printed on the user's
> terminal. */
> -             if (debug_flag || !options.control_persist)
> +             if (!debug_flag && options.control_path != NULL &&
> +                 options.control_persist)
>                       stderr_null();
>  
>               argv[0] = shell;
> 

Reply via email to