summaryrefslogtreecommitdiff
path: root/cli-chansession.c
diff options
context:
space:
mode:
Diffstat (limited to 'cli-chansession.c')
-rw-r--r--cli-chansession.c6
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";
}