diff options
author | 2001-05-24 18:57:53 +0000 | |
---|---|---|
committer | 2001-05-24 18:57:53 +0000 | |
commit | 38cadb58c84df3b56324878c056b5c2bebb2aa4b (patch) | |
tree | abb84431d804f90a76347b9dfd01c34ded96eb60 /usr.bin/ssh/ssh.c | |
parent | Move duplication of header (and tags) after assigning the flags, so (diff) | |
download | wireguard-openbsd-38cadb58c84df3b56324878c056b5c2bebb2aa4b.tar.xz wireguard-openbsd-38cadb58c84df3b56324878c056b5c2bebb2aa4b.zip |
don't perform escape processing when ``EscapeChar none''; ok markus@
Diffstat (limited to 'usr.bin/ssh/ssh.c')
-rw-r--r-- | usr.bin/ssh/ssh.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/usr.bin/ssh/ssh.c b/usr.bin/ssh/ssh.c index 56d6b9613b7..4ff30bc0640 100644 --- a/usr.bin/ssh/ssh.c +++ b/usr.bin/ssh/ssh.c @@ -39,7 +39,7 @@ */ #include "includes.h" -RCSID("$OpenBSD: ssh.c,v 1.118 2001/05/04 23:47:34 markus Exp $"); +RCSID("$OpenBSD: ssh.c,v 1.119 2001/05/24 18:57:53 stevesk Exp $"); #include <openssl/evp.h> #include <openssl/err.h> @@ -409,7 +409,7 @@ main(int ac, char **av) else if (strlen(optarg) == 1) options.escape_char = (u_char) optarg[0]; else if (strcmp(optarg, "none") == 0) - options.escape_char = -2; + options.escape_char = SSH_ESCAPECHAR_NONE; else { fprintf(stderr, "Bad escape character '%s'.\n", optarg); exit(1); @@ -940,7 +940,8 @@ ssh_session(void) } /* Enter the interactive session. */ - return client_loop(have_tty, tty_flag ? options.escape_char : -1, 0); + return client_loop(have_tty, tty_flag ? + options.escape_char : SSH_ESCAPECHAR_NONE, 0); } void @@ -1096,7 +1097,8 @@ ssh_session2(void) if (daemon(1, 1) < 0) fatal("daemon() failed: %.200s", strerror(errno)); - return client_loop(tty_flag, tty_flag ? options.escape_char : -1, id); + return client_loop(tty_flag, tty_flag ? + options.escape_char : SSH_ESCAPECHAR_NONE, id); } void |