Blame SOURCES/telnet-0.17-8bit.patch

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