Hi

After the last commit where consecutive `*' are folded, *pattern is
never '*' here.

Best,

Martin

Index: match.c
===================================================================
RCS file: /cvs/src/usr.bin/ssh/match.c,v
retrieving revision 1.43
diff -u -p -r1.43 match.c
--- match.c     3 Nov 2020 22:53:12 -0000       1.43
+++ match.c     21 Jul 2021 09:59:59 -0000
@@ -69,7 +69,7 @@ match_pattern(const char *s, const char 
                                return 1;
 
                        /* If next character in pattern is known, optimize. */
-                       if (*pattern != '?' && *pattern != '*') {
+                       if (*pattern != '?') {
                                /*
                                 * Look instances of the next character in
                                 * pattern, and try to match starting from

Reply via email to