comparison cli-session.c @ 325:0e4f225b7e07

Add -N "no remote command" dbclient option. Document -N in dbclient.1 and -P in dropbear.8
author Matt Johnston <matt@ucc.asn.au>
date Wed, 07 Jun 2006 15:01:20 +0000
parents 3be7ae2e8dfa
children d965110e3f5c
comparison
equal deleted inserted replaced
324:bc7c134982df 325:0e4f225b7e07
216 setup_localtcp(); 216 setup_localtcp();
217 #endif 217 #endif
218 #ifdef ENABLE_CLI_REMOTETCPFWD 218 #ifdef ENABLE_CLI_REMOTETCPFWD
219 setup_remotetcp(); 219 setup_remotetcp();
220 #endif 220 #endif
221 cli_send_chansess_request(); 221 if (!cli_opts.no_cmd) {
222 TRACE(("leave cli_sessionloop: cli_send_chansess_request")) 222 cli_send_chansess_request();
223 }
224 TRACE(("leave cli_sessionloop: running"))
223 cli_ses.state = SESSION_RUNNING; 225 cli_ses.state = SESSION_RUNNING;
224 return; 226 return;
225 227
226 case SESSION_RUNNING: 228 case SESSION_RUNNING:
227 if (ses.chancount < 1) { 229 if (ses.chancount < 1 && !cli_opts.no_cmd) {
228 cli_finished(); 230 cli_finished();
229 } 231 }
230 232
231 if (cli_ses.winchange) { 233 if (cli_ses.winchange) {
232 cli_chansess_winchange(); 234 cli_chansess_winchange();