summaryrefslogtreecommitdiffstats
path: root/usr.bin/login
diff options
context:
space:
mode:
authorgad <gad@FreeBSD.org>2002-03-12 19:48:32 +0000
committergad <gad@FreeBSD.org>2002-03-12 19:48:32 +0000
commit42c020af817ac03cb9a53456c043248ce8e7a8d6 (patch)
tree70961faee7a90ca3ce50702c686990b88b6e10cf /usr.bin/login
parent42c25f9773e05ec3c6eb1267e31956d2aac84e19 (diff)
downloadFreeBSD-src-42c020af817ac03cb9a53456c043248ce8e7a8d6.zip
FreeBSD-src-42c020af817ac03cb9a53456c043248ce8e7a8d6.tar.gz
Simple fix so the 'LOGIN FAILURE' message send to syslog will include
the correct userid, instead of random garbage. This bug does not exist in -stable. Reviewed by: freebsd-audit
Diffstat (limited to 'usr.bin/login')
-rw-r--r--usr.bin/login/login.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/usr.bin/login/login.c b/usr.bin/login/login.c
index c821319..a17c60f 100644
--- a/usr.bin/login/login.c
+++ b/usr.bin/login/login.c
@@ -284,7 +284,6 @@ main(int argc, char *argv[])
if (failures > (pwd ? 0 : 1))
badlogin(olduser);
}
- olduser = username;
/*
* Load the PAM policy and set some variables
OpenPOWER on IntegriCloud