Skip to contentSkip to conversation

lib-parser-fix-match_wildcard-to-correctly-handle-trailing-stars.patch removed from -mm tree

merged mm-nonmm-stable Andrew Morton 1 participant 1 message Apr 3

lore
Share & tools
lore

Andrew Morton

author tree notice Applied
#0 lore raw

The quilt patch titled
Subject: lib: parser: fix match_wildcard to correctly handle trailing stars
has been removed from the -mm tree. Its filename was
lib-parser-fix-match_wildcard-to-correctly-handle-trailing-stars.patch

This patch was dropped because it was merged into the mm-nonmm-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm

------------------------------------------------------
From: Inseob Kim <[email protected]>
Subject: lib: parser: fix match_wildcard to correctly handle trailing stars
Date: Thu, 26 Mar 2026 11:06:04 +0900

This fixes a bug in match_wildcard that incorrectly handles trailing asterisks. For example, match_wildcard("abc**", "abc") must return true, but it returns false.

---

 lib/parser.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
lib/parser.c renamed from lib/parser.c~lib-parser-fix-match_wildcard-to-correctly-handle-trailing-stars +1 -1
@@ -315,7 +315,7 @@ bool match_wildcard(const char *pattern,
 		}
 	}
 
-	if (*p == '*')
+	while (*p == '*')
 		++p;
 	return !*p;
 }

_

Patches currently in -mm which might be from [email protected] are