diff --git a/scripts/checksrc-all.pl b/scripts/checksrc-all.pl index 5b1cba7af6..5982384fe1 100755 --- a/scripts/checksrc-all.pl +++ b/scripts/checksrc-all.pl @@ -34,7 +34,7 @@ my $anyfailed = 0; for my $dir (@dirs) { if($is_git) { @files = (); - open(O, '-|', 'git', 'ls-files', "$dir/*.[ch]") || die; push @files, ; close(O); + open(O, '-|', 'git', 'ls-files', ":(glob)$dir/*.[ch]") || die; push @files, ; close(O); chomp(@files); } else {