From owner-freebsd-current Tue Feb 4 10:39:47 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 807C537B401; Tue, 4 Feb 2003 10:39:45 -0800 (PST) Received: from lennier.cc.vt.edu (lennier.cc.vt.edu [198.82.162.213]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8C37643F79; Tue, 4 Feb 2003 10:39:44 -0800 (PST) (envelope-from mheffner@vt.edu) Received: from steiner.cc.vt.edu (IDENT:mirapoint@steiner-lb.cc.vt.edu [10.1.1.14]) by lennier.cc.vt.edu (8.11.4/8.11.4) with ESMTP id h14IdfG488576; Tue, 4 Feb 2003 13:39:41 -0500 (EST) Received: from enterprise.muriel.penguinpowered.com ([199.3.139.172]) by steiner.cc.vt.edu (Mirapoint Messaging Server MOS 3.3.2-CR) with ESMTP id AZE06136 (AUTH mheffner); Tue, 4 Feb 2003 13:39:38 -0500 (EST) Message-ID: X-Mailer: XFMail 1.5.4 on FreeBSD X-Priority: 3 (Normal) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="_=XFMail.1.5.4.FreeBSD:20030204134006:14403=_"; micalg=pgp-md5; protocol="application/pgp-signature" In-Reply-To: <20030204175224.GB34907@comp.chem.msu.su> Date: Tue, 04 Feb 2003 13:40:06 -0500 (EST) From: Mike Heffner To: Yar Tikhiy Subject: Re: ftpd mkdir problems Cc: freebsd-current@FreeBSD.ORG, David Rhodus Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG This message is in MIME format --_=XFMail.1.5.4.FreeBSD:20030204134006:14403=_ Content-Type: text/plain; charset=us-ascii 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 --_=XFMail.1.5.4.FreeBSD:20030204134006:14403=_ Content-Type: application/pgp-signature -----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----- --_=XFMail.1.5.4.FreeBSD:20030204134006:14403=_-- End of MIME message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message