Date: Tue, 5 Jun 2007 11:30:08 GMT From: Bruce Cran <bruce@cran.org.uk> To: freebsd-bugs@FreeBSD.org Subject: Re: misc/113336: ftpd doesn't handle filenames which contain curly ?brackets Message-ID: <200706051130.l55BU8tf011120@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/113336; it has been noted by GNATS.
From: Bruce Cran <bruce@cran.org.uk>
To: freebsd-bugs@FreeBSD.ORG, bug-followup@FreeBSD.org,
olli@lurza.secnetix.de
Cc:
Subject: Re: misc/113336: ftpd doesn't handle filenames which contain curly
?brackets
Date: Tue, 05 Jun 2007 12:28:48 +0100
Oliver Fromme wrote:
> 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
>
Thanks, it works with FreeBSD's FTP client when I use two backslashes.
Regards,
Bruce
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200706051130.l55BU8tf011120>
