Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 4 Jun 2007 19:09:02 +0200 (CEST)
From:      Oliver Fromme <olli@lurza.secnetix.de>
To:        freebsd-bugs@FreeBSD.ORG, bug-followup@FreeBSD.ORG, bruce@cran.org.uk
Subject:   Re: misc/113336: ftpd doesn't handle filenames which contain curly ?brackets
Message-ID:  <200706041709.l54H92Mv091047@lurza.secnetix.de>
In-Reply-To: <200706041602.l54G2dGD004568@www.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Bruce Cran wrote:
 > When trying to fetch files from a server running the ftpd from
 > /usr/libexec, ftpd apparently removes curly brackets from filenames
 > before trying to read them from the filesystem.

ftpd performs filename globbing, i.e. it interprets
the wildcards "?", "*" and "[...]", and additionally
it expands csh-like brace expressions.

In other words:  What you see is expected behaviour,
not a bug.  Try prepending a backslash in front of
the braces, i.e.:  get guid_\{1234567890\}_file.txt

(I haven't tested this ...  It might be possible that
the FTP client removes one level of backslashes, so
in that case you need to write two backslashes each.)

Best regards
   Oliver

-- 
Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. M.
Handelsregister: Registergericht Muenchen, HRA 74606,  Geschäftsfuehrung:
secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün-
chen, HRB 125758,  Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart

FreeBSD-Dienstleistungen, -Produkte und mehr:  http://www.secnetix.de/bsd

"I learned Java 3 years before Python.  It was my language of
choice.  It took me two weekends with Python before I was more
productive with it than with Java." -- Anthony Roberts



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200706041709.l54H92Mv091047>