Date: Tue, 4 Feb 2003 09:50:38 -0800 (PST) From: Yar Tikhiy <yar@FreeBSD.org> To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/libexec/ftpd ftpcmd.y Message-ID: <200302041750.h14HocIu006015@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
yar 2003/02/04 09:50:38 PST Modified files: libexec/ftpd ftpcmd.y Log: Let tilde expansion be done even if a file/directory doesn't exist yet. This makes such natural commands as "MKD ~user/newdir" or "STOR ~/newfile" do what they are supposed to instead of failing miserably with the "File not found" error. This involves a bit of code reorganization. Namely, the code doing glob(3) expansion has been separated to a function; a new function has been introduced to do tilde expansion; the latter function is invoked on a pathname before the former one. Thus behaviour mimicing that of the Bourne shell has been achieved. Revision Changes Path 1.49 +98 -35 src/libexec/ftpd/ftpcmd.y To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200302041750.h14HocIu006015>