- Enable -s for specifying a subsystem (such as sftp)

--HG--
extra : convert_revision : c7b916e6c522f16f06fe1bd52815ba13aa88b90b
This commit is contained in:
Matt Johnston
2008-09-23 15:57:26 +00:00
parent b98d13effb
commit efe45cddbe
3 changed files with 11 additions and 1 deletions

View File

@@ -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";
}