aboutsummaryrefslogtreecommitdiff
path: root/toys/posix/uname.c
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2012-10-08 21:24:19 -0500
committerRob Landley <rob@landley.net>2012-10-08 21:24:19 -0500
commit2d995382e24433b1c724fa3eb653479c1dc19402 (patch)
tree2c5f258574332be0be4dbe25c826a71058560804 /toys/posix/uname.c
parentc0e56edaf256adb6c60c5a052525a1ffbb927901 (diff)
downloadtoybox-2d995382e24433b1c724fa3eb653479c1dc19402.tar.gz
Fix thinko for uname -m when i686 binary runs on x86_64 host.
Diffstat (limited to 'toys/posix/uname.c')
-rw-r--r--toys/posix/uname.c6
1 files changed, 4 insertions, 2 deletions
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++) {