[git commit] checkstack.pl: fix arch autodetection

Bernhard Reutner-Fischer rep.dot.nop at gmail.com
Thu Jan 17 21:59:45 UTC 2019


commit: https://git.busybox.net/busybox/commit/?id=fe7ae562e5d0121d1c5f4d3ba1ec4117c7bbaab8
branch: https://git.busybox.net/busybox/commit/?id=refs/heads/master

chomp trailing newlines

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop at gmail.com>
---
 scripts/checkstack.pl | 1 +
 1 file changed, 1 insertion(+)

diff --git a/scripts/checkstack.pl b/scripts/checkstack.pl
index 55cdd78c1..b5980a2e3 100755
--- a/scripts/checkstack.pl
+++ b/scripts/checkstack.pl
@@ -32,6 +32,7 @@ my (@stack, $re, $x, $xs);
 	my $arch = shift;
 	if ($arch eq "") {
 		$arch = `uname -m`;
+		1 while chomp $arch;
 	}
 
 	$x	= "[0-9a-f]";	# hex character


More information about the busybox-cvs mailing list