From: Eugene Syromiatnikov Date: Tue, 31 Mar 2026 03:44:30 +0000 (+0200) Subject: util/checkplatformsyms.pl: handle command exit code X-Git-Tag: openssl-4.0.0~59 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=80b965014b8d8f81ff426e119c1d64ddd0a6b078;p=thirdparty%2Fopenssl.git util/checkplatformsyms.pl: handle command exit code Error out if the executed command (dumpbin/objdump) hasn't been successful. Signed-off-by: Eugene Syromiatnikov Reviewed-by: Neil Horman Reviewed-by: Tomas Mraz MergeDate: Fri Apr 3 15:42:17 2026 (Merged from https://github.com/openssl/openssl/pull/30635) (cherry picked from commit 2753b08a6651cf80c9164aae32c2eeafee67a311) --- diff --git a/util/checkplatformsyms.pl b/util/checkplatformsyms.pl index 3e42f976eaf..0ba8d333b2a 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; }