> btw: I can now log in to sshd2 with lsh and vice versa, but an old bug
> occured again: when logging to sshd2 with lsh, the terminal is not read and
> thus no characters are transmitted to sshd2. I once fixed this bug, but I
> can't remember exactly how. (the root of this problem was that lshd
> immediately sends a window-resize request, which sshd2 doesn't, IMHO because
> the initial window size is not 0)
I was right about the reason, and this patch fixes it:
diff -urN --exclude-from=diff-exclude lsh-0.1.14/src/client.c
lsh-0.1.14-bazsi/src/client.c
--- lsh-0.1.14/src/client.c Mon Oct 11 22:45:39 1999
+++ lsh-0.1.14-bazsi/src/client.c Wed Nov 3 14:14:11 1999
@@ -410,6 +410,8 @@
channel->send = do_send;
session->in->super.read = make_channel_read_data(channel);
+ if (session->super.send_window_size)
+ session->in->super.want_read = 1;
session->in->super.close_callback
= make_channel_read_close_callback(channel);
--
Bazsi
PGP info: KeyID 9AF8D0A9 Fingerprint CD27 CFB0 802C 0944 9CFD 804E C82C 8EB1
url: http://www.balabit.hu/pgpkey.txt