Be a bit more strict with open() calls.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
#
# Generate macros.c
#
-open(OUT,">macros.c") or die "unable to open macros.c\n";
+open(OUT,"> macros.c\0") or die "unable to open macros.c\n";
print OUT "/*\n";
print OUT " * Do not edit - this file auto-generated by macros.pl from:\n";
my $z;
foreach $fname ( @ARGV ) {
- open(INPUT,$fname) or die "unable to open $fname\n";
+ open(INPUT,"< $fname\0") or die "$0: $fname: $!\n";
while (<INPUT>) {
$line++;
chomp;