]> git.ipfire.org Git - people/teissler/ipfire-2.x.git/blame - src/patches/telnet-0.17-8bit.patch
kernel: update to 3.10.23.
[people/teissler/ipfire-2.x.git] / src / patches / telnet-0.17-8bit.patch
CommitLineData
b52f6eb2
DW
1diff -ru netkit-telnet-0.17.orig/telnet/main.c netkit-telnet-0.17/telnet/main.c
2--- netkit-telnet-0.17.orig/telnet/main.c 2003-05-15 20:07:40.000000000 +0200
3+++ netkit-telnet-0.17/telnet/main.c 2003-05-16 00:18:28.000000000 +0200
4@@ -143,7 +143,7 @@
5 while ((ch = getopt(argc, argv, "78DEKLS:X:ab:cde:fFk:l:n:rt:x")) != -1) {
6 switch(ch) {
7 case '8':
8- eight = 3; /* binary output and input */
9+ binary = 3; /* send TELNET BINARY option for output and input */
10 break;
11 case '7':
12 eight = 0;
13@@ -165,7 +165,7 @@
14 #endif
15 break;
16 case 'L':
17- eight |= 2; /* binary output only */
18+ binary = 2; /* send TELNET BINARY option for output only */
19 break;
20 case 'S':
21 {
22diff -ru netkit-telnet-0.17.orig/telnet/telnet.1 netkit-telnet-0.17/telnet/telnet.1
23--- netkit-telnet-0.17.orig/telnet/telnet.1 2003-05-15 20:07:40.000000000 +0200
24+++ netkit-telnet-0.17/telnet/telnet.1 2003-05-15 23:38:37.000000000 +0200
25@@ -76,6 +76,8 @@
26 .Pp
27 The options are as follows:
28 .Bl -tag -width Ds
29+.It Fl 7
30+Strip 8th bit on input and output. Telnet is 8-bit clean by default but doesn't send the TELNET BINARY option unless forced.
31 .It Fl 8
32 Specifies an 8-bit data path.
33 This causes an attempt to negotiate the