Date: Wed, 6 Aug 2014 08:28:00 +0200 From: Szabolcs Nagy <nsz@...t70.net> To: ????????? <g548462@...il.com> Cc: musl@...ts.openwall.com Subject: Re: fnmatch.h bug? * ????????? <g548462@...il.com> [2014-08-06 11:01:40 +0800]: > > musl-libc: > i = fnmatch( "[[?*\\]" , "\\" , 0 ); // it will return 0 -> i = 0 > glibc: > i = fnmatch( "[[?*\\]" , "\\" , 0 ); // it will return 1 -> i = 1 > > The return value is DIFFERENT ! > I am confuse which library is wrong? > If you have any idea, please response me and send an e-mail to me, in a bracket expression a backslash loses its special meaning so this pattern matches a single '[', '?', '*' or '\\' character if glibc fails to match '\\' then it's a bug in their implementation (this exact pattern is even part of the libc-test suite for fnmatch)
Powered by blists - more mailing lists
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.