From patchwork Tue May 23 07:37:31 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Carlo Arenas X-Patchwork-Id: 69837 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 13AD83856965 for ; Tue, 23 May 2023 07:38:27 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 13AD83856965 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1684827507; bh=t1GqtSNRNaiymfoDT5uEWDCAppBHQn0WM4qRxlckt44=; h=To:Cc:Subject:Date:In-Reply-To:References:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From:Reply-To:From; b=OIDkOwF6oFeYXl6xXXU7z5oa1ygSGJRlAFtrgZW2zHUi0ROyaG3yIKM2gEScaQoK4 SBI0hUxzl+s+eqYM5RUXf1HCJU29s1fL2+aUb3OviYj8edJYBJWCwrYM5u5mIynM+l meqBgq2Mma8hTtKfi55xKE+tNeaJ7egKpiq7qpFM= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-pj1-x1029.google.com (mail-pj1-x1029.google.com [IPv6:2607:f8b0:4864:20::1029]) by sourceware.org (Postfix) with ESMTPS id 112863858D35 for ; Tue, 23 May 2023 07:38:05 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 112863858D35 Received: by mail-pj1-x1029.google.com with SMTP id 98e67ed59e1d1-2554696544cso1967726a91.2 for ; Tue, 23 May 2023 00:38:05 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684827484; x=1687419484; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=t1GqtSNRNaiymfoDT5uEWDCAppBHQn0WM4qRxlckt44=; b=SaIthOb9vDd9LSTLlU20KS2SfmXtZyMPwS4mp1TbGLH4XpfzEODTFS+HKjLlf6V/7x /sP4DWUe1sx2S6LWzP7R6Sruw+GY6PTb7H2pHKpPKOXejQRWMI5VTTbfkPG5eJMrP0oj 8yKiJgEXt/DZbJFMMtiCq+DFQ+ft2sZmeJD44E4arOmAEV6VzjisI36dIs9rRqTXj/3w dQ5ZGn8q94E7JhL6ZaERwiSMBfMs/IhTBIeWb36h92iiimbdh6tqfLy78E6iLWBpHA/w 5C6CDh/5dLtPbL7FnwSXTHhplJdvILGvzXQunRWGYKDwtboUpy/jm1RUwI9anDtSQgEd yMEg== X-Gm-Message-State: AC+VfDwPMIexKpPTRp75MpzN67NUiFHJSmFgrVtCzGUb7iG12+6BnBMD +Q5kzQnTYd8VB35NJoh5scw5EjaFo2s= X-Google-Smtp-Source: ACHHUZ4m5CweKVegka25r0HyeFYXf7TkjX7gQZx1s9brMxeGk9tHp/BrKopeYwYpmGwFDhkBZkoudg== X-Received: by 2002:a17:90a:2e12:b0:253:3ce4:b421 with SMTP id q18-20020a17090a2e1200b002533ce4b421mr12030650pjd.1.1684827483560; Tue, 23 May 2023 00:38:03 -0700 (PDT) Received: from localhost.localdomain (192-184-219-167.fiber.dynamic.sonic.net. [192.184.219.167]) by smtp.gmail.com with ESMTPSA id g6-20020a635206000000b0053051d50a48sm5410027pgb.79.2023.05.23.00.38.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 May 2023 00:38:02 -0700 (PDT) To: libc-alpha@sourceware.org Cc: =?utf-8?q?Carlo_Marcelo_Arenas_Bel=C3=B3n?= Subject: [PATCH 1/2] fnmatch: allow character class names with 'z' Date: Tue, 23 May 2023 00:37:31 -0700 Message-Id: <20230523073732.6956-2-carenas@gmail.com> X-Mailer: git-send-email 2.39.2 (Apple Git-143) In-Reply-To: <20230523073732.6956-1-carenas@gmail.com> References: <20230523073732.6956-1-carenas@gmail.com> MIME-Version: 1.0 X-Spam-Status: No, score=-9.2 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: =?utf-8?q?Carlo_Marcelo_Arenas_Bel=C3=B3n_via_Libc-alpha?= From: Carlo Arenas Reply-To: =?utf-8?q?Carlo_Marcelo_Arenas_Bel=C3=B3n?= Errors-To: libc-alpha-bounces+patchwork=sourceware.org@sourceware.org Sender: "Libc-alpha" Since d8aaef00a7 (Update., 1999-04-26), there is code to consider character class names that include that character as invalid * posix/fnmatch_loop.c: correct inequality Copyright-paperwork-exempt: yes --- posix/fnmatch_loop.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/posix/fnmatch_loop.c b/posix/fnmatch_loop.c index 8aeec9816f..4be2e20141 100644 --- a/posix/fnmatch_loop.c +++ b/posix/fnmatch_loop.c @@ -283,7 +283,7 @@ FCT (const CHAR *pattern, const CHAR *string, const CHAR *string_end, p += 2; break; } - if (c < L_('a') || c >= L_('z')) + if (c < L_('a') || c > L_('z')) { /* This cannot possibly be a character class name. Match it as a normal range. */