Bug 20675

Summary: ftpd can't correct handle usernames more than 9 charactes long
Product: Base System Reporter: vova <vova>
Component: binAssignee: Sheldon Hearn <sheldonh>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 5.0-CURRENT   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description vova 2000-08-17 11:00:01 UTC
looking into ftpd code:


static int login_attempts;	/* number of failed login attempts */
static int askpasswd;		/* had user command, ask for passwd */
static char curname[10];	/* current USER name */

/*
 * USER command.
 * Sets global passwd pointer pw if named account exists and is acceptable;

How-To-Repeat: add user with long username (> 9 characters)
try to login with this user by ftp
Comment 1 Sheldon Hearn freebsd_committer freebsd_triage 2000-08-17 13:24:55 UTC
Responsible Changed
From-To: freebsd-bugs->sheldonh

I'll take this one, since I've been suing this patch for a  
little over a year, now.
Comment 2 Sheldon Hearn freebsd_committer freebsd_triage 2000-08-17 13:32:14 UTC
State Changed
From-To: open->closed

Committed, thanks! 

ftpd.c rev 1.67 (HEAD) 
ftpd.c rev 1.62.2.4 (RELENG_4)