From 2d995382e24433b1c724fa3eb653479c1dc19402 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Mon, 8 Oct 2012 21:24:19 -0500 Subject: Fix thinko for uname -m when i686 binary runs on x86_64 host. --- toys/posix/uname.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'toys/posix/uname.c') diff --git a/toys/posix/uname.c b/toys/posix/uname.c index 3c774b3c..fcc92a08 100644 --- a/toys/posix/uname.c +++ b/toys/posix/uname.c @@ -56,8 +56,10 @@ void uname_main(void) // This problem originates in autoconf, so of course the solution // is horribly ugly. #ifdef GROSS - if (i==4 && !strcmp(c,"x86_64")) printf(GROSS); - else + if (i==4 && !strcmp(c,"x86_64")) { + printf(GROSS); + continue; + } #endif if (needspace++) { -- cgit v1.2.3