Date: Wed, 28 Aug 2002 00:05:21 +0200 From: Thomas Vogt <turbo23@gmx.net> To: Max Khon <stable@FreeBSD.ORG> Subject: Re: ftpchroot problem with lukemftpd Message-ID: <20020827220521.GA21985@bsdunix.ch> In-Reply-To: <20020828014459.A61483@iclub.nsu.ru> References: <200208271122.16665.jsoule@webcrossing.com> <20020828014459.A61483@iclub.nsu.ru>
next in thread | previous in thread | raw e-mail | index | archive | help
Hi Will a patch be commited to the stable branch? Regards Thomas * Max Khon <fjoe@iclub.nsu.ru> [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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020827220521.GA21985>