diff --git a/scripts/generate_errors.pl b/scripts/generate_errors.pl index 5395abf41..878cfba33 100755 --- a/scripts/generate_errors.pl +++ b/scripts/generate_errors.pl @@ -60,11 +60,11 @@ open(FORMAT_FILE, '<:crlf', "$error_format_file") or die "Opening error format f my $error_format = ; close(FORMAT_FILE); -my @files = <$include_dir/*.h>; +my @files = glob qq("$include_dir/*.h"); my @necessary_include_files; my @matches; foreach my $file (@files) { - open(FILE, '<:crlf', "$file"); + open(FILE, '<:crlf', $file) or die("$0: $file: $!"); my $content = ; close FILE; my $found = 0;