]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
util/checkplatformsyms.pl: check that supplied files exist
authorEugene Syromiatnikov <esyr@openssl.org>
Tue, 31 Mar 2026 03:11:59 +0000 (05:11 +0200)
committerTomas Mraz <tomas@openssl.foundation>
Fri, 3 Apr 2026 15:41:40 +0000 (17:41 +0200)
Otherwise their absense is seemingly ignored, which leads to overlooked
symbol additions.

Signed-off-by: Eugene Syromiatnikov <esyr@openssl.org>
Reviewed-by: Neil Horman <nhorman@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.foundation>
MergeDate: Fri Apr  3 15:42:15 2026
(Merged from https://github.com/openssl/openssl/pull/30635)

util/checkplatformsyms.pl

index 742dd8ea84fe30c8aad22dd5bb40f11d987f74d9..c43d74daba9ce6de711912912dfe017556eb12ae 100755 (executable)
@@ -14,6 +14,13 @@ my $expectedsyms=$ARGV[0];
 
 shift(@ARGV);
 
+# Check that object files exist
+foreach (@ARGV) {
+    unless (-f $_ && -r $_) {
+        die "Path is not a regular readable file: '$_'";
+    }
+}
+
 my $objlist;
 my $objfilelist = join(" ", @ARGV);
 my $expsyms;