Date: Thu, 17 Aug 2000 02:53:08 -0700 (PDT) From: vova@express.ru To: freebsd-gnats-submit@FreeBSD.org Subject: bin/20675: ftpd can't correct handle usernames more than 9 charactes long Message-ID: <20000817095308.3504C37B423@hub.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 20675 >Category: bin >Synopsis: ftpd can't correct handle usernames more than 9 charactes long >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Aug 17 03:00:01 PDT 2000 >Closed-Date: >Last-Modified: >Originator: Vladimir B Grebenschikov >Release: 5.0-CURRENT >Organization: TSB "Russian Express" >Environment: FreeBSD lanturn.kmost.express.ru 5.0-CURRENT FreeBSD 5.0-CURRENT #4: Wed Jun 7 18:40:26 MSD 2000 root@lanturn.kmost.express.ru:/ext/src/sys/compile/LANTURN i386 >Description: 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 >Fix: --- ftpd.c.orig Thu Aug 17 13:48:14 2000 +++ ftpd.c Thu Aug 17 13:47:55 2000 @@ -871,7 +871,7 @@ 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 */ +static char curname[MAXLOGNAME]; /* current USER name */ >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000817095308.3504C37B423>