From: Sigbjørn Skjæret Date: Sat, 28 Mar 2026 21:27:38 +0000 (+0100) Subject: fix **/x glob matching (#21129) X-Git-Tag: upstream/0.0.8611~36 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=65097181e4c8358e7b570b48a2ae7b759f12bf26;p=pkg%2Fggml%2Fsources%2Fllama.cpp fix **/x glob matching (#21129) --- diff --git a/common/common.cpp b/common/common.cpp index c5ed79783..a9bd49419 100644 --- a/common/common.cpp +++ b/common/common.cpp @@ -703,7 +703,6 @@ static inline bool glob_match(const char * pattern, const char * str) { } if (pattern[0] == '*' && pattern[1] == '*') { const char * p = pattern + 2; - if (*p == '/') p++; if (glob_match(p, str)) return true; if (*str != '\0') return glob_match(pattern, str + 1); return false;