summaryrefslogtreecommitdiff
path: root/auth1.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2004-07-21 20:48:53 +1000
committerDamien Miller <djm@mindrot.org>2004-07-21 20:48:53 +1000
commit30d1f84911f7c8ed86913e3900d75693d133adee (patch)
tree7d7d4855627091a240d1218b2b800171415257db /auth1.c
parenta22f2d761b79b37969ac56cfa794af5a0b83f06b (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 'auth1.c')
-rw-r--r--auth1.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/auth1.c b/auth1.c
index ab6fd34dd..ea133b0cb 100644
--- a/auth1.c
+++ b/auth1.c
@@ -10,7 +10,7 @@
*/
#include "includes.h"
-RCSID("$OpenBSD: auth1.c,v 1.57 2004/05/23 23:59:53 dtucker Exp $");
+RCSID("$OpenBSD: auth1.c,v 1.58 2004/07/21 10:33:31 djm Exp $");
#include "xmalloc.h"
#include "rsa.h"
@@ -306,7 +306,7 @@ do_authentication(Authctxt *authctxt)
authctxt->pw = fakepw();
}
- setproctitle("%s%s", authctxt->pw ? user : "unknown",
+ setproctitle("%s%s", authctxt->valid ? user : "unknown",
use_privsep ? " [net]" : "");
#ifdef USE_PAM