From owner-freebsd-stable Sun Jul 8 7:38:52 2001 Delivered-To: freebsd-stable@freebsd.org Received: from the-7.net (the-7.net [211.232.190.152]) by hub.freebsd.org (Postfix) with ESMTP id B7C9D37B401 for ; Sun, 8 Jul 2001 07:38:47 -0700 (PDT) (envelope-from ab@the-7.net) Received: (from ab@localhost) by the-7.net (8.11.3/8.11.3) id f68Ecfj40939; Sun, 8 Jul 2001 23:38:41 +0900 (KST) (envelope-from ab) Date: Sun, 8 Jul 2001 23:38:41 +0900 From: "Eugene M. Kim" To: Oliver Fromme Cc: FreeBSD-stable Mailing List Subject: Re: ftpd weirdness; CWD/RETR/... handles {} specially? Message-ID: <20010708233841.A40891@the-7.net> Reply-To: "Eugene M. Kim" , FreeBSD-stable Mailing List References: <20010708225724.A40756@the-7.net> <200107081413.QAA67683@lurza.secnetix.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <200107081413.QAA67683@lurza.secnetix.de>; from olli@secnetix.de on Sun, Jul 08, 2001 at 04:13:26PM +0200 Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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 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