Mercurial > dropbear
comparison cli-chansession.c @ 497:ae600f1eef81
- Enable -s for specifying a subsystem (such as sftp)
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Tue, 23 Sep 2008 15:57:26 +0000 |
parents | 12d845ab7b5f |
children | c3f2ec71e3d4 |
comparison
equal
deleted
inserted
replaced
495:cd02449b709c | 497:ae600f1eef81 |
---|---|
319 unsigned char* reqtype = NULL; | 319 unsigned char* reqtype = NULL; |
320 | 320 |
321 TRACE(("enter send_chansess_shell_req")) | 321 TRACE(("enter send_chansess_shell_req")) |
322 | 322 |
323 if (cli_opts.cmd) { | 323 if (cli_opts.cmd) { |
324 reqtype = "exec"; | 324 if (cli_opts.is_subsystem) { |
325 reqtype = "subsystem"; | |
326 } else { | |
327 reqtype = "exec"; | |
328 } | |
325 } else { | 329 } else { |
326 reqtype = "shell"; | 330 reqtype = "shell"; |
327 } | 331 } |
328 | 332 |
329 start_channel_request(channel, reqtype); | 333 start_channel_request(channel, reqtype); |