Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 04 Feb 2003 13:40:06 -0500 (EST)
From:      Mike Heffner <mheffner@vt.edu>
To:        Yar Tikhiy <yar@FreeBSD.ORG>
Cc:        freebsd-current@FreeBSD.ORG, David Rhodus <david@uky.edu>
Subject:   Re: ftpd mkdir problems
Message-ID:  <XFMail.20030204134006.mheffner@vt.edu>
In-Reply-To: <20030204175224.GB34907@comp.chem.msu.su>

index | next in thread | previous in thread | raw e-mail

[-- Attachment #1 --]

On 04-Feb-2003 Yar Tikhiy wrote:
| On Tue, Feb 04, 2003 at 03:05:31AM -0500, Mike Heffner wrote:
|> 
|> On 31-Jan-2003 David Rhodus wrote:
|> | Using the default ftpd that comes with FreeBSD, in the mkdir command,
|> | why doesn't it expand '~', the cd and rmdir commands seem to. Passing
|> | over the code it just calls the c function with should expand it.
|> 
|> No, the system calls don't expand a tilde. The expansion is done in
|> ftpcmd.y under the 'pathname' directive using glob(3), but glob(3)
|> won't
|> expand the tilde when the directory doesn't exist. Lukemftpd works
|> around
|> this by implementing its own '~' expansion code. Yar has been working
|> on
|> ftpd recently, you might want to ask him if he has any plans to address
|> this.
| 
| I've got inspiration to fix this bug in CURRENT today :-)
| Would everyone concerned mind testing my change to ftpd(8) and
| giving me your feedback?
| Thanks.
| 

Appears to work on my end. ;-)



Mike

-- 
  Mike Heffner       <mheffner@[acm.]vt.edu>
                         <mikeh@FreeBSD.org>


[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (FreeBSD)
Comment: For info see http://www.gnupg.org

iD8DBQE+QAkFFokZQs3sv5kRAiX/AKCL785xA85m8659xXqVEz7qc90PAwCdFQzr
CFRZCN736PjZrExRKT/JN1c=
=74Kj
-----END PGP SIGNATURE-----
help

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