Blame SOURCES/telnet-0.17-8bit.patch

fbcb50
diff -ru netkit-telnet-0.17.orig/telnet/main.c netkit-telnet-0.17/telnet/main.c
fbcb50
--- netkit-telnet-0.17.orig/telnet/main.c	2003-05-15 20:07:40.000000000 +0200
fbcb50
+++ netkit-telnet-0.17/telnet/main.c	2003-05-16 00:18:28.000000000 +0200
fbcb50
@@ -143,7 +143,7 @@
fbcb50
 	while ((ch = getopt(argc, argv, "78DEKLS:X:ab:cde:fFk:l:n:rt:x")) != -1) {
fbcb50
 		switch(ch) {
fbcb50
 		case '8':
fbcb50
-			eight = 3;	/* binary output and input */
fbcb50
+			binary = 3;	/* send TELNET BINARY option for output and input */
fbcb50
 			break;
fbcb50
 		case '7':
fbcb50
 			eight = 0;
fbcb50
@@ -165,7 +165,7 @@
fbcb50
 #endif
fbcb50
 			break;
fbcb50
 		case 'L':
fbcb50
-			eight |= 2;	/* binary output only */
fbcb50
+			binary = 2;	/* send TELNET BINARY option for output only */
fbcb50
 			break;
fbcb50
 		case 'S':
fbcb50
 		    {
fbcb50
diff -ru netkit-telnet-0.17.orig/telnet/telnet.1 netkit-telnet-0.17/telnet/telnet.1
fbcb50
--- netkit-telnet-0.17.orig/telnet/telnet.1	2003-05-15 20:07:40.000000000 +0200
fbcb50
+++ netkit-telnet-0.17/telnet/telnet.1	2003-05-15 23:38:37.000000000 +0200
fbcb50
@@ -76,6 +76,8 @@
fbcb50
 .Pp
fbcb50
 The options are as follows:
fbcb50
 .Bl -tag -width Ds
fbcb50
+.It Fl 7
fbcb50
+Strip 8th bit on input and output. Telnet is 8-bit clean by default but doesn't send the TELNET BINARY option unless forced.
fbcb50
 .It Fl 8
fbcb50
 Specifies an 8-bit data path.
fbcb50
 This causes an attempt to negotiate the