diff options
author | Damien Miller <djm@mindrot.org> | 2004-07-21 20:48:53 +1000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2004-07-21 20:48:53 +1000 |
commit | 30d1f84911f7c8ed86913e3900d75693d133adee (patch) | |
tree | 7d7d4855627091a240d1218b2b800171415257db /auth2.c | |
parent | a22f2d761b79b37969ac56cfa794af5a0b83f06b (diff) |
- 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 @@ | |||
23 | */ | 23 | */ |
24 | 24 | ||
25 | #include "includes.h" | 25 | #include "includes.h" |
26 | RCSID("$OpenBSD: auth2.c,v 1.105 2004/05/23 23:59:53 dtucker Exp $"); | 26 | RCSID("$OpenBSD: auth2.c,v 1.106 2004/07/21 10:33:31 djm Exp $"); |
27 | 27 | ||
28 | #include "ssh2.h" | 28 | #include "ssh2.h" |
29 | #include "xmalloc.h" | 29 | #include "xmalloc.h" |
@@ -166,7 +166,7 @@ input_userauth_request(int type, u_int32_t seq, void *ctxt) | |||
166 | PRIVSEP(start_pam(authctxt)); | 166 | PRIVSEP(start_pam(authctxt)); |
167 | #endif | 167 | #endif |
168 | } | 168 | } |
169 | setproctitle("%s%s", authctxt->pw ? user : "unknown", | 169 | setproctitle("%s%s", authctxt->valid ? user : "unknown", |
170 | use_privsep ? " [net]" : ""); | 170 | use_privsep ? " [net]" : ""); |
171 | authctxt->service = xstrdup(service); | 171 | authctxt->service = xstrdup(service); |
172 | authctxt->style = style ? xstrdup(style) : NULL; | 172 | authctxt->style = style ? xstrdup(style) : NULL; |