diff options
author | Damien Miller <djm@cvs.openbsd.org> | 2004-07-21 10:33:32 +0000 |
---|---|---|
committer | Damien Miller <djm@cvs.openbsd.org> | 2004-07-21 10:33:32 +0000 |
commit | 02fdf7ba66a50f3160b704b0edbde77bf854e1c9 (patch) | |
tree | daf7714d9e75c7875b62ba44c22ff85d3d32cad5 /usr.bin/ssh/auth2.c | |
parent | e9064c32ee87be697a8738aae242b0fd03eabf66 (diff) |
bz#899: Don't display invalid usernames in setproctitle
from peak AT argo.troja.mff.cuni.cz; ok markus@
Diffstat (limited to 'usr.bin/ssh/auth2.c')
-rw-r--r-- | usr.bin/ssh/auth2.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/ssh/auth2.c b/usr.bin/ssh/auth2.c index 92c6acf50e6..56ad44176a5 100644 --- a/usr.bin/ssh/auth2.c +++ b/usr.bin/ssh/auth2.c @@ -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" @@ -157,7 +157,7 @@ input_userauth_request(int type, u_int32_t seq, void *ctxt) logit("input_userauth_request: illegal user %s", user); authctxt->pw = fakepw(); } - setproctitle("%s%s", authctxt->pw ? user : "unknown", + setproctitle("%s%s", authctxt->valid ? user : "unknown", use_privsep ? " [net]" : ""); authctxt->user = xstrdup(user); authctxt->service = xstrdup(service); |