summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien Miller <djm@cvs.openbsd.org>2010-06-22 04:59:13 +0000
committerDamien Miller <djm@cvs.openbsd.org>2010-06-22 04:59:13 +0000
commit7a2f9571bb3c8b4108af6b5305adcbad4616cb40 (patch)
tree5d30215280fe7a5f0d54330d6c8c6b92098fbfb5
parent33d89468c5d6f2bad2b6ef96a48c827a0406f6c7 (diff)
include the user name on "subsystem request for ..." log messages;
bz#1571; ok dtucker@
-rw-r--r--usr.bin/ssh/session.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/ssh/session.c b/usr.bin/ssh/session.c
index 354df1f9302..424d44e52ba 100644
--- a/usr.bin/ssh/session.c
+++ b/usr.bin/ssh/session.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: session.c,v 1.254 2010/06/18 03:16:03 djm Exp $ */
+/* $OpenBSD: session.c,v 1.255 2010/06/22 04:59:12 djm Exp $ */
/*
* Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
* All rights reserved
@@ -1753,7 +1753,8 @@ session_subsystem_req(Session *s)
u_int i;
packet_check_eom();
- logit("subsystem request for %.100s", subsys);
+ logit("subsystem request for %.100s by user %s", subsys,
+ s->pw->pw_name);
for (i = 0; i < options.num_subsystems; i++) {
if (strcmp(subsys, options.subsystem_name[i]) == 0) {