summaryrefslogtreecommitdiff
path: root/usr.bin/telnet
diff options
context:
space:
mode:
authorAaron Campbell <aaron@cvs.openbsd.org>1999-07-23 15:04:49 +0000
committerAaron Campbell <aaron@cvs.openbsd.org>1999-07-23 15:04:49 +0000
commit6661c3efe534f9f7857f49c3d130ee2f18119cd7 (patch)
tree2f88ce70832182c0201945976e9033543935fc38 /usr.bin/telnet
parent0c4211adf938b9cf62a9d70611c7125f752bcf72 (diff)
Fix the case where telnet(1) would escape if in binary (-8) mode, even if the
-E option (stop all characters from being recognized as an escape character) was specified, if it was passed a 0xFF character; from FreeBSD, millert@ ok
Diffstat (limited to 'usr.bin/telnet')
-rw-r--r--usr.bin/telnet/telnet.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/telnet/telnet.c b/usr.bin/telnet/telnet.c
index 5fc6e00b1f8..65ee77f1e64 100644
--- a/usr.bin/telnet/telnet.c
+++ b/usr.bin/telnet/telnet.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: telnet.c,v 1.6 1998/07/27 15:29:29 millert Exp $ */
+/* $OpenBSD: telnet.c,v 1.7 1999/07/23 15:04:48 aaron Exp $ */
/* $NetBSD: telnet.c,v 1.7 1996/02/28 21:04:15 thorpej Exp $ */
/*
@@ -1992,7 +1992,7 @@ telsnd()
}
if ((sc == '\n') || (sc == '\r'))
bol = 1;
- } else if (sc == escape) {
+ } else if (escape != _POSIX_VDISABLE && sc == escape) {
/*
* Double escape is a pass through of a single escape character.
*/