diff options
author | Thomas Daubney <thomas.daubney@arm.com> | 2023-01-09 18:17:02 +0000 |
---|---|---|
committer | Thomas Daubney <thomas.daubney@arm.com> | 2023-01-09 18:28:10 +0000 |
commit | 33878ed30b75a46a68f95126cfb9511bffe3e468 (patch) | |
tree | b5456b9c51dc75009a6b42d35d95876163330416 /scripts/generate_errors.pl | |
parent | b17803682e268aae4f6fe0a9634693b13a8c95d9 (diff) | |
download | mbedtls-33878ed30b75a46a68f95126cfb9511bffe3e468.zip mbedtls-33878ed30b75a46a68f95126cfb9511bffe3e468.tar.gz mbedtls-33878ed30b75a46a68f95126cfb9511bffe3e468.tar.bz2 |
Modify generate errors script
Modify generate_errors.pl such that it can now handle
opening files where the file path includes a directory
name containing spaces.
Raised in issue #6879. Fix provided by
@tom-cosgrove-arm in aforementioned issue.
Signed-off-by: Thomas Daubney <thomas.daubney@arm.com>
Diffstat (limited to 'scripts/generate_errors.pl')
-rwxr-xr-x | scripts/generate_errors.pl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/generate_errors.pl b/scripts/generate_errors.pl index 5395abf..878cfba 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 = <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; |