Date: Wed, 28 Aug 2002 01:44:59 +0700 From: Max Khon <fjoe@iclub.nsu.ru> To: Jeff Soule <jsoule@webcrossing.com> Cc: stable@freebsd.org Subject: Re: ftpchroot problem with lukemftpd Message-ID: <20020828014459.A61483@iclub.nsu.ru> In-Reply-To: <200208271122.16665.jsoule@webcrossing.com>; from jsoule@webcrossing.com on Tue, Aug 27, 2002 at 11:22:16AM -0700 References: <200208271122.16665.jsoule@webcrossing.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--k+w/mQv8wyuph6w0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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 --k+w/mQv8wyuph6w0 Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="lukemftpd.diff" 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. --k+w/mQv8wyuph6w0-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020828014459.A61483>