summaryrefslogtreecommitdiffhomepage
path: root/svr-chansession.c
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2006-08-07 13:41:23 +0000
committerMatt Johnston <matt@ucc.asn.au>2006-08-07 13:41:23 +0000
commitd1daf6531a78f9875a8a96114c8d698c600fe5b7 (patch)
treeee1ec6cf000bbb61b852f43c218a564a25e8ef5c /svr-chansession.c
parentafb651821b9e603fc9347b3fb5d0ba9ddfdad355 (diff)
parente89b40e9c90e94447ba61e20649e9419744f5501 (diff)
merge of '9a4e042fd565f46141e81e0c1ab90260303348fe'
and 'bea3887a5875cf3ab8a1331e15e698b37b61fe37' --HG-- extra : convert_revision : d05a6820ef6a95047d07edf66390e03afa32d556
Diffstat (limited to 'svr-chansession.c')
-rw-r--r--svr-chansession.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/svr-chansession.c b/svr-chansession.c
index b8f939b..ea23fd3 100644
--- a/svr-chansession.c
+++ b/svr-chansession.c
@@ -588,6 +588,16 @@ static int sessioncommand(struct Channel *channel, struct ChanSess *chansess,
}
}
+#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);