ladybird/Ports/dropbear/patches/winsize-remove-pixels.patch
Yonatan Goldschmidt c377e6af29 Ports: Add preliminary dropbear port
This is very basic and doesn't support many features. Instead
of describing what it *doesn't* support, I'll describe what I
have tested:
1. Public key authentication (password is not supported)
2. Single command execution
3. PTY-less interactive bash shell (/bin/sh doesn't work)
4. Multi-user (i.e you can ssh as 'anon' as well as root)
2020-05-11 09:50:42 +02:00

31 lines
701 B
Diff

--- a/sshpty.c.orig
+++ b/sshpty.c
@@ -347,8 +347,6 @@
w.ws_row = row;
w.ws_col = col;
- w.ws_xpixel = xpixel;
- w.ws_ypixel = ypixel;
(void) ioctl(ptyfd, TIOCSWINSZ, &w);
}
--- a/cli-chansession.c.orig
+++ b/cli-chansession.c
@@ -234,14 +234,12 @@
/* Some sane defaults */
ws.ws_row = 25;
ws.ws_col = 80;
- ws.ws_xpixel = 0;
- ws.ws_ypixel = 0;
}
buf_putint(ses.writepayload, ws.ws_col); /* Cols */
buf_putint(ses.writepayload, ws.ws_row); /* Rows */
- buf_putint(ses.writepayload, ws.ws_xpixel); /* Width */
- buf_putint(ses.writepayload, ws.ws_ypixel); /* Height */
+ buf_putint(ses.writepayload, 0); /* Width */
+ buf_putint(ses.writepayload, 0); /* Height */
}