Blame SOURCES/0031-Fix-question-mark-wildcard-withing-a-file-name.patch

d7fdbd
From 0da42468ac9518a544aad57d22d7697d6bdfa969 Mon Sep 17 00:00:00 2001
d7fdbd
From: Martin Sehnoutka <msehnout@redhat.com>
d7fdbd
Date: Thu, 17 Nov 2016 13:25:12 +0100
d7fdbd
Subject: [PATCH 31/59] Fix question mark wildcard withing a file name.
d7fdbd
d7fdbd
Previously '?' worked only at the end of a file name, now it can
d7fdbd
be used anywhere.
d7fdbd
---
d7fdbd
 ls.c | 3 ++-
d7fdbd
 1 file changed, 2 insertions(+), 1 deletion(-)
d7fdbd
d7fdbd
diff --git a/ls.c b/ls.c
d7fdbd
index 3c0988c..35c15c7 100644
d7fdbd
--- a/ls.c
d7fdbd
+++ b/ls.c
d7fdbd
@@ -459,7 +459,8 @@ vsf_filename_passes_filter(const struct mystr* p_filename_str,
d7fdbd
         must_match_at_current_pos = 0;
d7fdbd
       }
d7fdbd
     } while (locate_result.found &&
d7fdbd
-             str_getlen(&name_remain_str) > 0 && last_token != '*');
d7fdbd
+             str_getlen(&name_remain_str) > 0 &&
d7fdbd
+             last_token != '*' && last_token != '?');
d7fdbd
   }
d7fdbd
   /* Any incoming string left means no match unless we ended on the correct
d7fdbd
    * type of wildcard.
d7fdbd
-- 
d7fdbd
2.14.4
d7fdbd