Commit 2753b08a66 for openssl.org
commit 2753b08a6651cf80c9164aae32c2eeafee67a311
Author: Eugene Syromiatnikov <esyr@openssl.org>
Date: Tue Mar 31 05:44:30 2026 +0200
util/checkplatformsyms.pl: handle command exit code
Error out if the executed command (dumpbin/objdump) hasn't been
successful.
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:17 2026
(Merged from https://github.com/openssl/openssl/pull/30635)
diff --git a/util/checkplatformsyms.pl b/util/checkplatformsyms.pl
index 3e42f976ea..0ba8d333b2 100755
--- a/util/checkplatformsyms.pl
+++ b/util/checkplatformsyms.pl
@@ -58,6 +58,10 @@ if ($Config{osname} eq "MSWin32") {
}
}
}
+
+ close($OBJFH);
+ ($? >> 8 == 0) or die "Command '$cmd' has failed.";
+
foreach (@symlist) {
if (index($exps, $_) < 0) {
print "Symbol $_ not in the allowed platform symbols list\n";
@@ -87,5 +91,6 @@ else {
}
}
close($OBJFH);
- exit 0;
+
+ exit $? >> 8;
}