summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Porting/Maintainers.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/Porting/Maintainers.pm b/Porting/Maintainers.pm
index d4bd4a87c7..f1016b44eb 100644
--- a/Porting/Maintainers.pm
+++ b/Porting/Maintainers.pm
@@ -81,9 +81,11 @@ sub expand_glob {
}, $_);
@files;
}
+ # Not a glob, but doesn't exist
+ : $_ !~ /[*?{]/ ? $_
# The rest are globbable patterns; expand the glob, then
# recursively perform directory expansion on any results
- : expand_glob(grep -e $_,glob($_))
+ : expand_glob(glob($_))
} @_;
}