summaryrefslogtreecommitdiffhomepage
path: root/cli-chansession.c
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2004-08-24 18:12:18 +0000
committerMatt Johnston <matt@ucc.asn.au>2004-08-24 18:12:18 +0000
commit2dcd6b22d94755a4f328885f469908c441ac8534 (patch)
treec75494387a545e2d8eba39b3773e4f772d17c91e /cli-chansession.c
parent857dfdeb9e54a219991f55b26bd9c88401830e56 (diff)
Nasty.
--HG-- extra : convert_revision : e1229cd01c3007206d2937ea390ad4966c289a5a
Diffstat (limited to 'cli-chansession.c')
-rw-r--r--cli-chansession.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/cli-chansession.c b/cli-chansession.c
index 1267ae0..df6eb45 100644
--- a/cli-chansession.c
+++ b/cli-chansession.c
@@ -44,7 +44,7 @@ static void send_chansess_shell_req(struct Channel *channel);
static void cli_tty_setup();
void cli_tty_cleanup();
-static const struct ChanType clichansess = {
+const struct ChanType clichansess = {
0, /* sepfds */
"session", /* name */
cli_initchansess, /* inithandler */
@@ -316,7 +316,8 @@ static int cli_initchansess(struct Channel *channel) {
channel->infd = STDOUT_FILENO;
channel->outfd = STDIN_FILENO;
- //channel->errfd = STDERR_FILENO;
+ channel->errfd = STDERR_FILENO;
+ channel->extrabuf = buf_new(RECV_MAXWINDOW);
if (cli_opts.wantpty) {
send_chansess_pty_req(channel);