Bug 28130

Summary: When an incorrect login is attempted, then a successful one goes through, the login process displays the incorrect first login name
Product: Base System Reporter: chern.lee <chern.lee>
Component: binAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 5.0-CURRENT   
Hardware: Any   
OS: Any   

Description chern.lee 2001-06-13 22:10:02 UTC
The login binary is invoked as "login -p user" once the user enters a 
username within the "login:" prompt to bring up the corresponding 
"password:" prompt for that particular user.

This causes some problems with multiple logins.  login can retry logins 
many times.  However, the same username as the first login attempt shows 
up.

Fix: 

Perhaps rewrite argv each time a login is attempted such that it always 
appears correctly.
How-To-Repeat: In a console, attempt to login with a bogus user/password.  Then, login.
Look at the corresponding login process running as root.  It will show up 
as login -p bogususer instead of the correct user.
Comment 1 bill fumerola freebsd_committer freebsd_triage 2001-06-13 23:36:42 UTC
State Changed
From-To: open->closed

lots of programs modify their behavior after starting.