Date: Tue, 04 Feb 2003 03:05:31 -0500 (EST) From: Mike Heffner <mheffner@vt.edu> To: David Rhodus <david@uky.edu> Cc: freebsd-current@FreeBSD.ORG, Yar Tikhiy <yar@FreeBSD.ORG> Subject: Re: ftpd mkdir problems Message-ID: <XFMail.20030204030531.mheffner@vt.edu> In-Reply-To: <B4E1A495-352E-11D7-820C-0050E460845F@uky.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
This message is in MIME format --_=XFMail.1.5.4.FreeBSD:20030204030531:14403=_ Content-Type: text/plain; charset=us-ascii 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. | | | ftp> cd ~will | 250 CWD command successful. | ftp> mkdir ~will/test | 550 ~will/test: No such file or directory. | ftp> mkdir test | 257 "test" directory created. | ftp> rmdir ~will/test | 250 RMD command successful. | ftp> | | | | -- | David Rhodus | | | To Unsubscribe: send mail to majordomo@FreeBSD.org | with "unsubscribe freebsd-current" in the body of the message | | Mike -- Mike Heffner <mheffner@[acm.]vt.edu> <mikeh@FreeBSD.org> --_=XFMail.1.5.4.FreeBSD:20030204030531:14403=_ Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (FreeBSD) Comment: For info see http://www.gnupg.org iD8DBQE+P3RKFokZQs3sv5kRAgEzAJ4ovemLKHcbNrtP3U008kdq0vsl7QCfeNZZ gxL++VsIgRzyckHIKIzbXfM= =fQRd -----END PGP SIGNATURE----- --_=XFMail.1.5.4.FreeBSD:20030204030531:14403=_-- End of MIME message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.20030204030531.mheffner>