diff options
| author | Rob Landley <rob@landley.net> | 2012-10-08 21:24:19 -0500 |
|---|---|---|
| committer | Rob Landley <rob@landley.net> | 2012-10-08 21:24:19 -0500 |
| commit | 2d995382e24433b1c724fa3eb653479c1dc19402 (patch) | |
| tree | 2c5f258574332be0be4dbe25c826a71058560804 | |
| parent | c0e56edaf256adb6c60c5a052525a1ffbb927901 (diff) | |
| download | toybox-2d995382e24433b1c724fa3eb653479c1dc19402.tar.gz | |
Fix thinko for uname -m when i686 binary runs on x86_64 host.
| -rw-r--r-- | toys/posix/uname.c | 6 |
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++) { |
