From 97f39ae810a8589c262f2b88d7dd4e70c0b84d70 Mon Sep 17 00:00:00 2001 From: Damien Miller Date: Mon, 24 Feb 2003 11:57:01 +1100 Subject: - markus@cvs.openbsd.org 2003/02/06 09:26:23 [session.c] missing call to setproctitle() after authentication; ok provos@ --- ChangeLog | 5 ++++- session.c | 4 +++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 8fe2de974..fc5f241bc 100644 --- a/ChangeLog +++ b/ChangeLog @@ -42,6 +42,9 @@ - markus@cvs.openbsd.org 2003/02/05 09:02:28 [readconf.c] simplify ProxyCommand parsing, remove strcat/xrealloc; ok henning@, djm@ + - markus@cvs.openbsd.org 2003/02/06 09:26:23 + [session.c] + missing call to setproctitle() after authentication; ok provos@ 20030211 - (djm) Cygwin needs libcrypt too. Patch from vinschen@redhat.com @@ -1142,4 +1145,4 @@ save auth method before monitor_reset_key_state(); bugzilla bug #284; ok provos@ -$Id: ChangeLog,v 1.2604 2003/02/24 00:56:27 djm Exp $ +$Id: ChangeLog,v 1.2605 2003/02/24 00:57:01 djm Exp $ diff --git a/session.c b/session.c index 812681d0f..c64240cf2 100644 --- a/session.c +++ b/session.c @@ -33,7 +33,7 @@ */ #include "includes.h" -RCSID("$OpenBSD: session.c,v 1.152 2002/12/10 08:56:00 markus Exp $"); +RCSID("$OpenBSD: session.c,v 1.153 2003/02/06 09:26:23 markus Exp $"); #include "ssh.h" #include "ssh1.h" @@ -201,6 +201,8 @@ auth_input_request_forwarding(struct passwd * pw) void do_authenticated(Authctxt *authctxt) { + setproctitle("%s", authctxt->pw->pw_name); + /* * Cancel the alarm we set to limit the time taken for * authentication. -- cgit v1.2.3