Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 8 Jul 2001 23:38:41 +0900
From:      "Eugene M. Kim" <ab@astralblue.net>
To:        Oliver Fromme <olli@secnetix.de>
Cc:        FreeBSD-stable Mailing List <stable@freebsd.org>
Subject:   Re: ftpd weirdness; CWD/RETR/... handles {} specially?
Message-ID:  <20010708233841.A40891@the-7.net>
In-Reply-To: <200107081413.QAA67683@lurza.secnetix.de>; from olli@secnetix.de on Sun, Jul 08, 2001 at 04:13:26PM %2B0200
References:  <20010708225724.A40756@the-7.net> <200107081413.QAA67683@lurza.secnetix.de>

next in thread | previous in thread | raw e-mail | index | archive | help
It depends on the case; in my situation, I'm mirroring quite a large
collection of files whose names are just wild, i.e. all sorts of special
characters embedded, some of them being shell metacharacters.

The mirror script could be modified to suit the FreeBSD ftpd, but I'd
rather see the ftpd be modified to make a way to disable it instead,
because:

1) mirror is not the only FTP client that doesn't know about the
globbing feature,
2) mirror already knows a lot about various ftpd quirks, so if it
doesn't know about the globbing, probably it is not a common feature (or
a consensus), among FTP client/server implementations anyway,
3) in many GUI-based FTP clients there's no way to automatically
translate a canonical name to an on-the-wire name.

IMHO the proper way should be:

* By default, ftpd doesn't perform globbing.
* There is a flag to enable the globbing feature.
* To (partially) ensure the backward compatibility, the default
inetd.conf has the globbing flag specified.

I'll try to submit a patch that does this.

Eugene

On Sun, Jul 08, 2001 at 04:13:26PM +0200, Oliver Fromme wrote:
> Eugene M. Kim <ab@astralblue.net> wrote:
>  > In that case, is there any way to disable the
>  > globbing?  I've just read the manpage but couldn't find the appropriate
>  > flag for it.
> 
> No, you can't disable the globbing globally in the ftpd, as
> fas as I know.  I think it would be a bad idea anyway, as
> some clients might find it very useful.  I also think it's
> a bad idea to use shell metacharacters in filenames.
> 
> You can simply quote/escape the metacharacters if needed,
> e.g.
> 
>    cd "\{3\}"
> 
> Regards
>    Oliver

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?20010708233841.A40891>