Mercurial > dropbear
diff 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 |
line wrap: on
line diff
--- a/svr-chansession.c Thu Jul 27 01:24:39 2006 +0000 +++ b/svr-chansession.c Mon Aug 07 13:41:23 2006 +0000 @@ -588,6 +588,16 @@ } } +#ifdef LOG_COMMANDS + if (chansess->cmd) { + dropbear_log(LOG_INFO, "user %s executing '%s'", + ses.authstate.printableuser, chansess->cmd); + } else { + dropbear_log(LOG_INFO, "user %s executing login shell", + ses.authstate.printableuser); + } +#endif + if (chansess->term == NULL) { /* no pty */ ret = noptycommand(channel, chansess);