From owner-FreeBSD-users-jp@jp.FreeBSD.org Mon Apr  4 01:55:27 2005
Received: (from daemon@localhost)
	by castle.jp.FreeBSD.org (8.11.6p2+3.4W/8.11.3) id j33GtRd03294;
	Mon, 4 Apr 2005 01:55:27 +0900 (JST)
	(envelope-from owner-FreeBSD-users-jp@jp.FreeBSD.org)
Received: from fifthluna.nokubi.or.jp (YahooBB219010004134.bbtec.net [219.10.4.134])
	by castle.jp.FreeBSD.org (8.11.6p2+3.4W/8.11.3) with ESMTP/inet id j33GtRX03285
	for <FreeBSD-users-jp@jp.FreeBSD.org>; Mon, 4 Apr 2005 01:55:27 +0900 (JST)
	(envelope-from nokubi@ff.iij4u.or.jp)
Received: from nokubi.dyndns.org (sassaby.nokubi.or.jp [192.168.9.3])
	by fifthluna.nokubi.or.jp (8.12.9p1/8.12.9) with ESMTP id j33H00xX007280
	for <FreeBSD-users-jp@jp.FreeBSD.org>; Mon, 4 Apr 2005 02:00:02 +0900 (JST)
	(envelope-from h-nokubi@nokubi.dyndns.org)
Message-Id: <200504031700.j33H00xX007280@fifthluna.nokubi.or.jp>
To: FreeBSD-users-jp@jp.FreeBSD.org
In-reply-to: Your message of "Tue, 22 Mar 2005 14:19:56 +0900."
             <050322141956.M1900468@XP.doga.jp>
Mime-Version: 1.0 (generated by tm-edit 7.108)
Content-Type: text/plain; charset=ISO-2022-JP
From: NOKUBI Hirotaka <nokubi@ff.iij4u.or.jp>
Reply-To: FreeBSD-users-jp@jp.FreeBSD.org
Precedence: list
Date: Mon, 04 Apr 2005 02:02:03 +0900
X-Sequence: FreeBSD-users-jp 83882
Subject: [FreeBSD-users-jp 83882] Re: ftpd =?ISO-2022-JP?B?GyRCJEcbKEI=?=
 =?ISO-2022-JP?B?GyRCJVUbKEIgGyRCJSElJCVrTD4kSxsoQg==?= { 
 =?ISO-2022-JP?B?GyRCJCw7SCQoJEokJBsoQg==?=
Sender: owner-FreeBSD-users-jp@jp.FreeBSD.org
X-Originator: nokubi@ff.iij4u.or.jp
X-Distribute: distribute version 2.1 (Alpha) patchlevel 24e+050320

$B$3$s$P$s$o!#Ln<s$G$9!#(B
$B$A$g$$$HD4$Y$F$_$^$7$?!#(B

In message <050322141956.M1900468@XP.doga.jp>, Masamichi Takatsu writes:

>$B$G!"$3$3$+$i$,K\Bj$J$N$G$9$,!"$J$<(B ftpd $B$O%U%!%$%kL>$N(B glob $BE83+$r9T$&(B
>$B;EMM$K$J$C$F$$$k$N$G$7$g$&$+(B?

4.2BSD $B$O!"(BSTOR $B$N>l9g!"C1=c$K;XDj$5$l$?%U%!%$%kL>$G(B
$B%9%H%"$9$k$h$&$K$J$C$F$^$9$,!"(B4.3BSD $B$K$J$k$H(B $B$b$&(B
$B8=:_$K6a$$(B ftpcmd.y $B$r;H$C$?<BAu$K$J$C$F$$$F!"(BSTOR $B$G$b(B
1$BJ8;zL\$,(B ~ $B$N>l9g$K8B$C$F(B glob$BE83+$7$F$^$9$M!#(B

FreeBSD $B$G$O!"(B1.25 $B$G0lJ8;zL\$N(B ~ $B$K8B$i$:(B glob$BE83+$9$k(B
$B$h$&$K$J$C$F$^$9!#%m%0$K$O0J2<$N$h$&$K$"$j$^$7$?!#(B

>revision 1.25
>date: 2001/04/17 03:03:45;  author: peter;  state: Exp;  lines: +7 -4
>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 <amittal@iprg.nokia.com>

$BJXMx$K$J$k%1!<%9$r8+$F$$$F!"ITET9g$N$"$k%1!<%9$O$"$s$^$j9M$($F(B
$B$J$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