From owner-freebsd-stable Tue Aug 27 15: 7: 9 2002 Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D762737B406 for ; Tue, 27 Aug 2002 15:07:02 -0700 (PDT) Received: from calahan.bsdunix.ch (zux187-250.adsl.green.ch [80.254.187.250]) by mx1.FreeBSD.org (Postfix) with ESMTP id 274AF43E4A for ; Tue, 27 Aug 2002 15:07:00 -0700 (PDT) (envelope-from turbo@bsdunix.ch) Received: from calahan.bsdunix.ch (localhost [127.0.0.1]) by calahan.bsdunix.ch (8.12.5/8.12.5) with ESMTP id g7RM5Ljn029973 for ; Wed, 28 Aug 2002 00:05:22 +0200 (CEST) (envelope-from turbo@bsdunix.ch) Received: (from turbo@localhost) by calahan.bsdunix.ch (8.12.5/8.12.5/Submit) id g7RM5Lvh029972 for stable@FreeBSD.ORG; Wed, 28 Aug 2002 00:05:21 +0200 (CEST) Date: Wed, 28 Aug 2002 00:05:21 +0200 From: Thomas Vogt To: Max Khon Subject: Re: ftpchroot problem with lukemftpd Message-ID: <20020827220521.GA21985@bsdunix.ch> References: <200208271122.16665.jsoule@webcrossing.com> <20020828014459.A61483@iclub.nsu.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020828014459.A61483@iclub.nsu.ru> User-Agent: Mutt/1.5.1i Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi Will a patch be commited to the stable branch? Regards Thomas * Max Khon [2002-08-27 20:50]: > hi, there! > > On Tue, Aug 27, 2002 at 11:22:16AM -0700, Jeff Soule wrote: > > > Not sure where to post this so.... > > > > Problem: > > lukemftpd fails to chroot accounts with usernames over 9 characters. If I > > strip all but the first 9 characters from the username in /etc/ftpchroot the > > account is chrooted correctly. > > > > System: > > FreeBSD 4.6-STABLE Stable system built from sources updated on 08/24/02 > > SMP kernel > > > > Questions: > > Is this a bug, or just something that I am too blind to see? If it is a bug > > where do I report it if not here? > > > > Thanks in advance for your replies, > > please try attached patch > > /fjoe > Index: ftpd.c > =================================================================== > RCS file: /home/ncvs/src/contrib/lukemftpd/src/ftpd.c,v > retrieving revision 1.1.1.2.2.1 > diff -u -p -r1.1.1.2.2.1 ftpd.c > --- ftpd.c 30 Jun 2002 06:00:51 -0000 1.1.1.2.2.1 > +++ ftpd.c 27 Aug 2002 18:44:04 -0000 > @@ -526,10 +526,10 @@ sgetpwnam(const char *name) > return (&save); > } > > -static int login_attempts; /* number of failed login attempts */ > -static int askpasswd; /* had USER command, ask for PASSwd */ > -static int permitted; /* USER permitted */ > -static char curname[10]; /* current USER name */ > +static int login_attempts; /* number of failed login attempts */ > +static int askpasswd; /* had USER command, ask for PASSwd */ > +static int permitted; /* USER permitted */ > +static char curname[MAXLOGNAME]; /* current USER name */ > > /* > * USER command. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message