From owner-freebsd-bugs@FreeBSD.ORG Mon Jun 4 17:10:11 2007 Return-Path: X-Original-To: freebsd-bugs@hub.freebsd.org Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 9F0EE16A469 for ; Mon, 4 Jun 2007 17:10:11 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id 8ECFF13C458 for ; Mon, 4 Jun 2007 17:10:11 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id l54HABe5084845 for ; Mon, 4 Jun 2007 17:10:11 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id l54HABih084844; Mon, 4 Jun 2007 17:10:11 GMT (envelope-from gnats) Date: Mon, 4 Jun 2007 17:10:11 GMT Message-Id: <200706041710.l54HABih084844@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org From: Oliver Fromme Cc: Subject: Re: misc/113336: ftpd doesn't handle filenames which contain curly ?brackets X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Oliver Fromme List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Jun 2007 17:10:11 -0000 The following reply was made to PR misc/113336; it has been noted by GNATS. From: Oliver Fromme To: freebsd-bugs@FreeBSD.ORG, bug-followup@FreeBSD.ORG, bruce@cran.org.uk Cc: Subject: Re: misc/113336: ftpd doesn't handle filenames which contain curly ?brackets Date: Mon, 4 Jun 2007 19:09:02 +0200 (CEST) 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