Blame SOURCES/telnet-0.17-8bit.patch

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