From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2 autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 19047 invoked from network); 9 Jan 2023 07:58:24 -0000 Received: from second.openwall.net (193.110.157.125) by inbox.vuxu.org with ESMTPUTF8; 9 Jan 2023 07:58:24 -0000 Received: (qmail 21952 invoked by uid 550); 9 Jan 2023 07:58:21 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Reply-To: musl@lists.openwall.com Received: (qmail 21917 invoked from network); 9 Jan 2023 07:58:20 -0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=pcbvnislxexiljmocxhjeg5lp2gwjesd; d=openwall.com.au; t=1673251077; h=Date:From:To:Subject:Message-ID:References:MIME-Version:Content-Type:In-Reply-To; bh=Ihg6Bp58r3ONXJyvFv2tpggsdkQVKm7OmquPpQ81GUY=; b=Gqy1DVvVQK+NWkY4omlLNj5/wE79x1Z1DB842bJyLq1TZHC41fcTSBM/EYFLIc8M mqFxbQXLWqf1nFrH5T0aoDunxdc+UduWRGGQUjnxfVjuyWRfHBSZu0vYTIg+YqJ5T8B 8mHEo20C6GFJxjeUwoCCDlTHw9KUB8U5KWUm4ITM= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=6gbrjpgwjskckoa6a5zn6fwqkn67xbtw; d=amazonses.com; t=1673251077; h=Date:From:To:Subject:Message-ID:References:MIME-Version:Content-Type:In-Reply-To:Feedback-ID; bh=Ihg6Bp58r3ONXJyvFv2tpggsdkQVKm7OmquPpQ81GUY=; b=WLj8s43H05wDs4Gikthnk0QwcVbD6gIXKfhdvn9wGZym2GwjtRUf8/y//hr1webr kgt0RaojPxX9hAUjm3TMeKN65gd9y0CozG8Xz3O+O7oodu8rqwUtqUtr0c01s4MpIsS IOsoNBEGKBuhuNCSDe7z/4J5P+nuJbalJEoDGmF0= ARC-Seal:i=1; a=rsa-sha256; d=openwall.com.au; s=20180402; t=1673251076; cv=none; b=bEZYe3mHH1x5FtNbw9+8TkBrrkMcg3p1tMDBWpRat2jlNyyytu5p7jPYZka0Yx1rrmP+PZkDtHj/MoLOwvCqCNVuK+UHO48d5QcwyDUux/eSUGj098QCMhbMnNrhi1xwutLtOA2SfKIS2yroxShEUUUUfTGbp5IF1or15k5q5ir7QFZhl10NESfUIxS7t2gXGiD+yU08NiWLjMRYeEg40sJkahq5A9pJ8/4aT8OkKIBVBsG88N+a1rXdXANFnjlbUQSI/Ni6vZQpXaRoYEqhT92AcIPlXkA2stkCD5FMrkmjq2A1uqfgKOyYdXV+1ZkPDxu4z1Lz4Q4G6i9v0gsmCg== ARC-Message-Signature:i=1; a=rsa-sha256; d=openwall.com.au; s=20180402; t=1673251076; c=relaxed/simple; bh=Ihg6Bp58r3ONXJyvFv2tpggsdkQVKm7OmquPpQ81GUY=; h=From:To:Subject; b=RkEo6PtjOgAobn/csDNTzW7PWC/keLBBDmvbJx3YnsAcNqFXm24N2jFw+NXDwJul1K6omJRxgpgMYWfUEZAAN3hLG8N+DKLGAloS3+6UexKJJpfI6hGJwI+C1eLH1EQrQpe/RCciLSo+T/0Sb+qGheVYW8OlYwxNdgk65rw8TVVaTS23ycjy6A3CRzpRrPR5/jFmc+8NmYIgSL+4IgniwU2zowPL+prCJzG/j0wPuQTUOyXveAGw7OJFZoPAvJ5tjf8DeyUc8CNM9VlWw9Cp1nkQI347Eq3xIzB6qkRnEsbWu18sUws97TOQE9rRC7GoFm5RlaWGwNDcj1+jrFWYrg== ARC-Authentication-Results:i=1; mail.openwall.com.au; none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=openwall.com.au; s=20180402; t=1673251076; bh=Ihg6Bp58r3ONXJyvFv2tpggsdkQVKm7OmquPpQ81GUY=; h=From:To:Subject:From; b=dSl3gHjVKrsWak4Z5yZR6T0KszFdF5tlqsDYql1gekKYa6smACEei52VG4dSDk9Oa u/Gl6u+O2/Op/QeH0ynS1NKkdmCM1Mm/dtiY+4g+zi1HroBYRrFYA81uJpwOZYYIYm lodxBIaYRU4pUApLq/IP2IChMfLfMuMng1Wt2G9sqF/f9V3w4hIvjvE0446nxHMU0O Xc3O80v40CR06VgUn40g8rEv/OwY9tKbGezBi6z5T/zhikldaIjmFhcAUgZ1fJSqR9 e6s/Dc307c5U0FoVKO3Wk/uKDPs07leLK+t5RX3JMIXV8muRkmH36wY8e/ycN2Dr6Z 3hzv9cwntBi+g== Date: Mon, 9 Jan 2023 07:57:56 +0000 From: "(GalaxyMaster)" To: musl@lists.openwall.com Message-ID: <0100018595893ac1-a4a3abcd-d50b-4907-a6bb-6a58d923e6b6-000000@email.amazonses.com> References: <0100018591a0bfbc-4edc55e0-b5eb-42ef-9d8e-12d9f0d09afd-000000@email.amazonses.com> <20230109073213.GB4163@brightrain.aerifal.cx> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230109073213.GB4163@brightrain.aerifal.cx> User-Agent: Mutt/1.5.21 (2010-09-15) Feedback-ID: 1.us-east-1.Br0WpcLm0XzNPYp+t39aA5qSwb/HYCx3zC5wkQY3G2s=:AmazonSES X-SES-Outgoing: 2023.01.09-54.240.8.35 Subject: Re: [musl] is fnmatch() a bit broken? Rich, On Mon, Jan 09, 2023 at 02:32:13AM -0500, Rich Felker wrote: > > galaxy@apollo:~/musl-fnmatch $ ./musl-fnmatch > > fnmatch("abc", "abc", 0) = 0 (expected: 0) > > fnmatch("[1\]] [1\]]", "1 ]", 0) = 1 (expected: 0) > > This difference is intentional because glibc's behavior is contrary to > the spec. Thanks for the explanation, today I learnt something :). However, you said: > A '\' can escape the '[' and make it non-special (not > open a bracket) but the '-' inside the bracket is not "special" to > begin with -- it's just part of the bracket syntax. Likewise with the > closing ']' case. Which brings a question on the "[1\]] [1\]]" use case not matching "1 ]". If I read your response correctly, it is expected to actually match on musl, did I get it wrong? -- (GM)