]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
util/mknum.pl: Fix file opening
authorRichard Levitte <levitte@openssl.org>
Fri, 4 Sep 2020 06:48:13 +0000 (08:48 +0200)
committerMatt Caswell <matt@openssl.org>
Sun, 13 Sep 2020 10:11:57 +0000 (11:11 +0100)
'or' has lower priority than '||' in perl, which affects evaluation order.

Reviewed-by: Paul Dale <paul.dale@oracle.com>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/12781)

util/mknum.pl

index 871c07055b365161dcaedfca127097170c7a0596..4ee87c29a8264c1a4e008ce1427fb241c1e0a163 100644 (file)
@@ -54,7 +54,7 @@ $ordinals->invalidate();
 
 foreach my $f (($symhacks_file // (), @ARGV)) {
     print STDERR $f," ","-" x (69 - length($f)),"\n" if $verbose;
-    open IN, $f || die "Couldn't open $f: $!\n";
+    open IN, $f or die "Couldn't open $f: $!\n";
     foreach (parse(<IN>, { filename => $f,
                            warnings => $warnings,
                            verbose => $verbose,