diff options
author | Markus Friedl <markus@cvs.openbsd.org> | 2001-01-13 18:56:49 +0000 |
---|---|---|
committer | Markus Friedl <markus@cvs.openbsd.org> | 2001-01-13 18:56:49 +0000 |
commit | 1d0e931edf475482d3ef0f7c46a5f8564d2823e2 (patch) | |
tree | 15f4310ac6e46c0440ad244c60612987c680cf33 /usr.bin/ssh/auth2.c | |
parent | 943e6d47590b5b9bb7f58f9e645291b89ed252c7 (diff) |
support supplementary group in {Allow,Deny}Groups
from stevesk@pobox.com
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 3edde42f850..8ac9aa0868b 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.26 2001/01/13 18:21:48 markus Exp $"); +RCSID("$OpenBSD: auth2.c,v 1.27 2001/01/13 18:56:48 markus Exp $"); #include <openssl/dsa.h> #include <openssl/rsa.h> @@ -298,7 +298,7 @@ userauth_log(Authctxt *authctxt, int authenticated, char *method) if (authctxt->valid) { user = authctxt->pw->pw_uid == 0 ? "ROOT" : authctxt->user; } else { - user = "NOUSER"; + user = authctxt->user ? authctxt->user : "NOUSER"; } authlog("%s %s for %.200s from %.200s port %d ssh2", |