diff options
author | Matt Johnston <matt@ucc.asn.au> | 2008-09-23 15:57:26 +0000 |
---|---|---|
committer | Matt Johnston <matt@ucc.asn.au> | 2008-09-23 15:57:26 +0000 |
commit | 67f1d9c59895fb234fa81890f05debe907927a54 (patch) | |
tree | f91478d1b8b2580a6bb0322afc8591b382a03e33 /cli-chansession.c | |
parent | 9b6805cbcba8904fb9d94d12df39250cc88d6400 (diff) | |
download | dropbear-67f1d9c59895fb234fa81890f05debe907927a54.tar.gz |
- Enable -s for specifying a subsystem (such as sftp)
Diffstat (limited to 'cli-chansession.c')
-rw-r--r-- | cli-chansession.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/cli-chansession.c b/cli-chansession.c index 07b9b9d..dc8e641 100644 --- a/cli-chansession.c +++ b/cli-chansession.c @@ -321,7 +321,11 @@ static void send_chansess_shell_req(struct Channel *channel) { TRACE(("enter send_chansess_shell_req")) if (cli_opts.cmd) { - reqtype = "exec"; + if (cli_opts.is_subsystem) { + reqtype = "subsystem"; + } else { + reqtype = "exec"; + } } else { reqtype = "shell"; } |