From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/4299 Path: news.gmane.org!not-for-mail From: Rich Felker Newsgroups: gmane.linux.lib.musl.general Subject: Re: fnmatch and FNM_CASEFOLD Date: Fri, 29 Nov 2013 18:34:17 -0500 Message-ID: <20131129233417.GK24286@brightrain.aerifal.cx> References: <20131129174249.GC24286@brightrain.aerifal.cx> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1385768065 10047 80.91.229.3 (29 Nov 2013 23:34:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 29 Nov 2013 23:34:25 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-4303-gllmg-musl=m.gmane.org@lists.openwall.com Sat Nov 30 00:34:31 2013 Return-path: Envelope-to: gllmg-musl@plane.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1VmXZu-0008WT-FE for gllmg-musl@plane.gmane.org; Sat, 30 Nov 2013 00:34:30 +0100 Original-Received: (qmail 5845 invoked by uid 550); 29 Nov 2013 23:34:29 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 5837 invoked from network); 29 Nov 2013 23:34:29 -0000 Content-Disposition: inline In-Reply-To: <20131129174249.GC24286@brightrain.aerifal.cx> User-Agent: Mutt/1.5.21 (2010-09-15) Xref: news.gmane.org gmane.linux.lib.musl.general:4299 Archived-At: On Fri, Nov 29, 2013 at 12:42:49PM -0500, Rich Felker wrote: > On Fri, Nov 29, 2013 at 05:59:12PM +0800, orc wrote: > > Hi list, > > > > This one really terrorized me well. Musl defines FNM_CASEFOLD in > > fnmatch.h but really does nothing when this flag is passed to > > function. This breaks busybox find -iname I believe, instead of file > > list matching "Test" among with "test" i get only those which > > contain "test" in their names with -iname "test". Missed lot of > > files because of it. > > Wishing this fixed or such define being removed. > > I think this is a reasonable request. FNM_CASEFOLD is problematic to I'd also like to remove FNM_LEADING_DIR, which is unsupported by musl and documented in the man page as: "This flag is mainly for the internal use of glibc and is implemented only in certain cases." Rich