From chern@meow.osd.bsdi.com  Wed Jun 13 14:07:40 2001
Return-Path: <chern@meow.osd.bsdi.com>
Received: from meow.osd.bsdi.com (meow.osd.bsdi.com [204.216.28.88])
	by hub.freebsd.org (Postfix) with ESMTP id C7B3B37B401
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 13 Jun 2001 14:07:40 -0700 (PDT)
	(envelope-from chern@meow.osd.bsdi.com)
Received: (from chern@localhost)
	by meow.osd.bsdi.com (8.11.3/8.11.2) id f5DL7YY43460;
	Wed, 13 Jun 2001 14:07:34 -0700 (PDT)
	(envelope-from chern)
Message-Id: <200106132107.f5DL7YY43460@meow.osd.bsdi.com>
Date: Wed, 13 Jun 2001 14:07:34 -0700 (PDT)
From: chern.lee@windriver.com
Reply-To: chern.lee@windriver.com
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: When an incorrect login is attempted, then a successful one goes through, the login process displays the incorrect first login name
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         28130
>Category:       bin
>Synopsis:       When an incorrect login is attempted, then a successful one goes through, the login process displays the incorrect first login name
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jun 13 14:10:02 PDT 2001
>Closed-Date:    Wed Jun 13 15:36:42 PDT 2001
>Last-Modified:  Wed Jun 13 15:38:16 PDT 2001
>Originator:     Chern Lee
>Release:        FreeBSD 5.0-CURRENT i386
>Organization:
Wind River Systems, Inc.
>Environment:
System: FreeBSD vision.osd.bsdi.com 5.0-CURRENT FreeBSD 5.0-CURRENT #0: Fri May 18 17:54:33 PDT 2001 chern@vision.osd.bsdi.com:/usr/src/sys/compile/VISION  i386

	
>Description:
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.

>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.

>Fix:

Perhaps rewrite argv each time a login is attempted such that it always 
appears correctly.
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: billf 
State-Changed-When: Wed Jun 13 15:36:42 PDT 2001 
State-Changed-Why:  
lots of programs modify their behavior after starting. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=28130 
>Unformatted:
