From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pj1-x1029.google.com with SMTP id 98e67ed59e1d1-2554696544cso1967726a91.2 for ; Tue, 23 May 2023 00:38:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1684827484; x=1687419484; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=t1GqtSNRNaiymfoDT5uEWDCAppBHQn0WM4qRxlckt44=; b=naAqz7u/M5l7Ax1ls4i+lVFxt50m+6I4hPUn8LQpJVkh3P9thnEkSUfgJevMhVFnVr HW3mEjmsYrBc01jZS7wNk3FgqYEbBr84OWe1a01bQJrGgLG+JWOHloI+HXVm4SXZp/VX 4okIV2isLjvS8Gb6wyTsFZ5qASw99zeVl47Ok8jecYWs7dAPa4bYk5XYR4ViztrWO4Rn F4FESlLQoQ/zJYDUmGJIePm+0LaDxV6sDsWlYbtCZUxlfvU1L1Jr+EX5Z8SojvPxV9c2 amP/61RtJWoAg9CwCKzLxUxgc/mMSXCz1bLy29g/J47u6SXZpNZAgUrkCxUl3DLeso2v S17w== 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) From: =?UTF-8?q?Carlo=20Marcelo=20Arenas=20Bel=C3=B3n?= To: libc-alpha@sourceware.org Cc: =?UTF-8?q?Carlo=20Marcelo=20Arenas=20Bel=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 Content-Transfer-Encoding: 8bit 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 List-Id: 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. */ -- 2.39.2