Date: Sat, 19 Jan 2002 14:24:20 -0700 From: Ian <freebsd@damnhippie.dyndns.org> To: freebsd-hackers <freebsd-hackers@freebsd.org> Subject: Re: ftpd patch that saves me a lot of hassle Message-ID: <B86F3214.9396%freebsd@damnhippie.dyndns.org> In-Reply-To: <200201192102.g0JL2Op01400@mass.dis.org>
next in thread | previous in thread | raw e-mail | index | archive | help
>> :+ 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?B86F3214.9396%freebsd>
