From owner-freebsd-bugs Thu Aug 17 3:51:32 2000 Delivered-To: freebsd-bugs@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id 0B4DF37B7F5 for ; Thu, 17 Aug 2000 03:51:13 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id DAA18884; Thu, 17 Aug 2000 03:00:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: by hub.freebsd.org (Postfix, from userid 32767) id 3504C37B423; Thu, 17 Aug 2000 02:53:08 -0700 (PDT) Message-Id: <20000817095308.3504C37B423@hub.freebsd.org> Date: Thu, 17 Aug 2000 02:53:08 -0700 (PDT) From: vova@express.ru To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-1.0 Subject: bin/20675: ftpd can't correct handle usernames more than 9 charactes long Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >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