Do binary per default
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@489 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -130,11 +130,14 @@ int main(int argc, char **argv)
|
|||||||
*/
|
*/
|
||||||
autologin = -1;
|
autologin = -1;
|
||||||
|
|
||||||
while ((ch = getopt(argc, argv, "8EKLS:X:acde:fFk:l:n:rt:x")) != EOF) {
|
while ((ch = getopt(argc, argv, "78EKLS:X:acde:fFk:l:n:rt:x")) != EOF) {
|
||||||
switch(ch) {
|
switch(ch) {
|
||||||
case '8':
|
case '8':
|
||||||
eight = 3; /* binary output and input */
|
eight = 3; /* binary output and input */
|
||||||
break;
|
break;
|
||||||
|
case '7':
|
||||||
|
eight = 0;
|
||||||
|
break;
|
||||||
case 'E':
|
case 'E':
|
||||||
rlogin = escape = _POSIX_VDISABLE;
|
rlogin = escape = _POSIX_VDISABLE;
|
||||||
break;
|
break;
|
||||||
|
@@ -41,7 +41,7 @@
|
|||||||
protocol
|
protocol
|
||||||
.Sh SYNOPSIS
|
.Sh SYNOPSIS
|
||||||
.Nm telnet
|
.Nm telnet
|
||||||
.Op Fl 8EFKLacdfrx
|
.Op Fl 78EFKLacdfrx
|
||||||
.Op Fl S Ar tos
|
.Op Fl S Ar tos
|
||||||
.Op Fl X Ar authtype
|
.Op Fl X Ar authtype
|
||||||
.Op Fl e Ar escapechar
|
.Op Fl e Ar escapechar
|
||||||
@@ -78,6 +78,10 @@ Specifies an 8-bit data path. This causes an attempt to
|
|||||||
negotiate the
|
negotiate the
|
||||||
.Dv TELNET BINARY
|
.Dv TELNET BINARY
|
||||||
option on both input and output.
|
option on both input and output.
|
||||||
|
.It Fl 7
|
||||||
|
Do not try to negotiate
|
||||||
|
.Dv TELNET BINARY
|
||||||
|
option.
|
||||||
.It Fl E
|
.It Fl E
|
||||||
Stops any character from being recognized as an escape character.
|
Stops any character from being recognized as an escape character.
|
||||||
.It Fl F
|
.It Fl F
|
||||||
|
@@ -76,7 +76,7 @@ char do_dont_resp[256];
|
|||||||
char will_wont_resp[256];
|
char will_wont_resp[256];
|
||||||
|
|
||||||
int
|
int
|
||||||
eight = 0,
|
eight = 3,
|
||||||
autologin = 0, /* Autologin anyone? */
|
autologin = 0, /* Autologin anyone? */
|
||||||
skiprc = 0,
|
skiprc = 0,
|
||||||
connected,
|
connected,
|
||||||
|
Reference in New Issue
Block a user