diff options
author | Damien Miller <djm@mindrot.org> | 2004-07-21 12:48:53 +0200 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2004-07-21 12:48:53 +0200 |
commit | 30d1f84911f7c8ed86913e3900d75693d133adee (patch) | |
tree | 7d7d4855627091a240d1218b2b800171415257db /auth2.c | |
parent | - (djm) OpenBSD CVS Sync (diff) | |
download | openssh-30d1f84911f7c8ed86913e3900d75693d133adee.tar.xz openssh-30d1f84911f7c8ed86913e3900d75693d133adee.zip |
- djm@cvs.openbsd.org 2004/07/21 10:33:31
[auth1.c auth2.c]
bz#899: Don't display invalid usernames in setproctitle
Diffstat (limited to 'auth2.c')
-rw-r--r-- | auth2.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -23,7 +23,7 @@ */ #include "includes.h" -RCSID("$OpenBSD: auth2.c,v 1.105 2004/05/23 23:59:53 dtucker Exp $"); +RCSID("$OpenBSD: auth2.c,v 1.106 2004/07/21 10:33:31 djm Exp $"); #include "ssh2.h" #include "xmalloc.h" @@ -166,7 +166,7 @@ input_userauth_request(int type, u_int32_t seq, void *ctxt) PRIVSEP(start_pam(authctxt)); #endif } - setproctitle("%s%s", authctxt->pw ? user : "unknown", + setproctitle("%s%s", authctxt->valid ? user : "unknown", use_privsep ? " [net]" : ""); authctxt->service = xstrdup(service); authctxt->style = style ? xstrdup(style) : NULL; |