comparison svr-chansession.c @ 350:01e4180895ba

merge of '9a4e042fd565f46141e81e0c1ab90260303348fe' and 'bea3887a5875cf3ab8a1331e15e698b37b61fe37'
author Matt Johnston <matt@ucc.asn.au>
date Mon, 07 Aug 2006 13:41:23 +0000
parents 2eb5a8514905 dba106bf6b34
children 78518751cb82 a124aff0cbf1
comparison
equal deleted inserted replaced
344:bf29e6659fb9 350:01e4180895ba
586 return DROPBEAR_FAILURE; 586 return DROPBEAR_FAILURE;
587 } 587 }
588 } 588 }
589 } 589 }
590 590
591 #ifdef LOG_COMMANDS
592 if (chansess->cmd) {
593 dropbear_log(LOG_INFO, "user %s executing '%s'",
594 ses.authstate.printableuser, chansess->cmd);
595 } else {
596 dropbear_log(LOG_INFO, "user %s executing login shell",
597 ses.authstate.printableuser);
598 }
599 #endif
600
591 if (chansess->term == NULL) { 601 if (chansess->term == NULL) {
592 /* no pty */ 602 /* no pty */
593 ret = noptycommand(channel, chansess); 603 ret = noptycommand(channel, chansess);
594 } else { 604 } else {
595 /* want pty */ 605 /* want pty */