From owner-freebsd-hackers Sat Jan 19 13:24:22 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from damnhippie.dyndns.org (12-253-177-2.client.attbi.com [12.253.177.2]) by hub.freebsd.org (Postfix) with ESMTP id 0CE6E37B400 for ; Sat, 19 Jan 2002 13:24:20 -0800 (PST) Received: from [172.22.42.2] (peace.hippie.lan [172.22.42.2]) by damnhippie.dyndns.org (8.11.6/8.11.1) with ESMTP id g0JLOJR37911 for ; Sat, 19 Jan 2002 14:24:19 -0700 (MST) (envelope-from freebsd@damnhippie.dyndns.org) User-Agent: Microsoft Outlook Express Macintosh Edition - 5.01 (1630) Date: Sat, 19 Jan 2002 14:24:20 -0700 Subject: Re: ftpd patch that saves me a lot of hassle From: Ian To: freebsd-hackers Message-ID: In-Reply-To: <200201192102.g0JL2Op01400@mass.dis.org> Mime-version: 1.0 Content-type: text/plain; charset="US-ASCII" Content-transfer-encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG >> :+ if (!isalnum(*name)) { >> :+ reply(521, "Bite me."); >> :+ return; >> :+ } > > Use isprint() on the entire string; this will give the desired result in > most cases. It should probably be optional (defaulting to on, since it's > a security measure). > > Actually, what would be nicely functional and general purpose would be a pair of options, one to prevent the creation of files/directories with a leading-dot name, the other a full isprint() filter on the whole string. And for each option, the ability to apply that filtering to all users or only anon users. (So why am I kvetching instead of coding and submitting? 'cause I'm still struggling my way up the nearly-vertical side of the cvs learning curve.) -- Ian To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message