aboutsummaryrefslogtreecommitdiff
path: root/contrib/make_sunver.pl
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/make_sunver.pl')
-rw-r--r--contrib/make_sunver.pl3
1 files changed, 2 insertions, 1 deletions
diff --git a/contrib/make_sunver.pl b/contrib/make_sunver.pl
index 292837402db..96ad22c2311 100644
--- a/contrib/make_sunver.pl
+++ b/contrib/make_sunver.pl
@@ -276,9 +276,10 @@ while (<F>) {
if (/^([ \t]*)([^ \t;{}#]+);?[ \t]*$/) {
my $ws = $1;
my $ptn = $2;
- # Turn the glob into a regex by replacing '*' with '.*'.
+ # Turn the glob into a regex by replacing '*' with '.*', '?' with '.'.
# Keep $ptn so we can still print the original form.
($pattern = $ptn) =~ s/\*/\.\*/g;
+ $pattern =~ s/\?/\./g;
if ($glob eq 'ign') {
# We're in a local: * section; just continue.