Skip to content

Commit

Permalink
Modify generate errors script
Browse files Browse the repository at this point in the history
Modify generate_errors.pl such that it can now handle
opening files where the file path includes a directory
names containing spaces.

Raised in issue Mbed-TLS#6879. Fix provided by
@tom-cosgrove-arm in aforementioned issue.

Signed-off-by: Thomas Daubney <thomas.daubney@arm.com>
  • Loading branch information
tom-daubney-arm committed Jan 9, 2023
1 parent b178036 commit 30f8420
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/generate_errors.pl
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,11 @@
my $error_format = <FORMAT_FILE>;
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 = <FILE>;
close FILE;
my $found = 0;
Expand Down

0 comments on commit 30f8420

Please sign in to comment.