version 1.118, 2001/05/04 23:47:34 |
version 1.119, 2001/05/24 18:57:53 |
|
|
else if (strlen(optarg) == 1) |
else if (strlen(optarg) == 1) |
options.escape_char = (u_char) optarg[0]; |
options.escape_char = (u_char) optarg[0]; |
else if (strcmp(optarg, "none") == 0) |
else if (strcmp(optarg, "none") == 0) |
options.escape_char = -2; |
options.escape_char = SSH_ESCAPECHAR_NONE; |
else { |
else { |
fprintf(stderr, "Bad escape character '%s'.\n", optarg); |
fprintf(stderr, "Bad escape character '%s'.\n", optarg); |
exit(1); |
exit(1); |
|
|
} |
} |
|
|
/* Enter the interactive session. */ |
/* 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 |
void |
|
|
if (daemon(1, 1) < 0) |
if (daemon(1, 1) < 0) |
fatal("daemon() failed: %.200s", strerror(errno)); |
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 |
void |