OSDN Git Service

Fix thinko for uname -m when i686 binary runs on x86_64 host.
authorRob Landley <rob@landley.net>
Tue, 9 Oct 2012 02:24:19 +0000 (21:24 -0500)
committerRob Landley <rob@landley.net>
Tue, 9 Oct 2012 02:24:19 +0000 (21:24 -0500)
toys/posix/uname.c

index 3c774b3..fcc92a0 100644 (file)
@@ -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++) {