From owner-freebsd-bugs Sun Nov 23 09:30:03 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id JAA20032 for bugs-outgoing; Sun, 23 Nov 1997 09:30:03 -0800 (PST) (envelope-from owner-freebsd-bugs) Received: (from gnats@localhost) by hub.freebsd.org (8.8.7/8.8.7) id JAA20026; Sun, 23 Nov 1997 09:30:01 -0800 (PST) (envelope-from gnats) Date: Sun, 23 Nov 1997 09:30:01 -0800 (PST) Message-Id: <199711231730.JAA20026@hub.freebsd.org> To: freebsd-bugs Cc: From: Dave Chapeskie Subject: Re: bin/5109: patch to ftpd, new option to limit number of ftpd sessions Reply-To: Dave Chapeskie Sender: owner-freebsd-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk The following reply was made to PR bin/5109; it has been noted by GNATS. From: Dave Chapeskie To: Joerg Wunsch Cc: FreeBSD-gnats-submit@FreeBSD.ORG Subject: Re: bin/5109: patch to ftpd, new option to limit number of ftpd sessions Date: Sun, 23 Nov 1997 12:28:23 -0500 On Sun, Nov 23, 1997 at 01:42:37PM +0100, J Wunsch wrote: > Instead of inventing a bunch of commandline options for each resource > limit, I only needed this one. :-) > did you consider using login.conf, and making ftpd using the user > "ftp"'s login class for anonymous access (and i think that's what you > actually want)? This would IMHO constitute a better approach. Do you mean just setting maxproc and letting the fork fail? If so that's evil cause the client gets no useful information on why the connection failed. At any rate, I did my change in 5 minutes and it works for me. If you want to spend more time to do something better go ahead. If you think my change is an ugly hack then don't commit it (and add a more detailed description of what you mean to the gnats PR so the next person that wants this can do it "right"). Cheers, -- Dave Chapeskie, DDM Consulting E-Mail: dchapes@ddm.on.ca