mirror of
https://github.com/clearml/dropbear
synced 2025-06-26 18:17:32 +00:00
- Enable -s for specifying a subsystem (such as sftp)
--HG-- extra : convert_revision : c7b916e6c522f16f06fe1bd52815ba13aa88b90b
This commit is contained in:
@@ -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";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user