From owner-cvs-all Mon Apr 16 20: 3:52 2001 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id E901437B61F; Mon, 16 Apr 2001 20:03:46 -0700 (PDT) (envelope-from peter@FreeBSD.org) Received: (from peter@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f3H33ke78364; Mon, 16 Apr 2001 20:03:46 -0700 (PDT) (envelope-from peter) Message-Id: <200104170303.f3H33ke78364@freefall.freebsd.org> From: Peter Wemm Date: Mon, 16 Apr 2001 20:03:46 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/libexec/ftpd ftpcmd.y X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG peter 2001/04/16 20:03:46 PDT Modified files: libexec/ftpd ftpcmd.y Log: Previous clobbered a work-in-progress. Here is the merged result: Limit the "pathname" glob to one item, as that is what all users of it are expecting, except for LIST. Always glob, instead of when the first character is a ~. For example, if you had directories ~/x1, and ~/x2, then "cwd x[1]" would fail, but "cwd ~/x[1]" would work since it was globbed due to the ~ character. Also, "cwd ~/x[12]" used to arbitarily work as it used the first expansion (ie: x1) without an error. Make it return '550 ambiguous' instead of '550 not found' so that the user can see the difference. For LIST, just use the user supplied string as the popen does the glob. Problem noticed by: Ajay Mittal Revision Changes Path 1.25 +7 -4 src/libexec/ftpd/ftpcmd.y To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message