Last active
September 28, 2021 06:29
-
-
Save wtnb75/8ff6053403a838ec9673c5e70b499011 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff -up ./toys/posix/uname.c.orig ./toys/posix/uname.c | |
--- ./toys/posix/uname.c.orig 2021-09-27 13:33:30.000000000 +0900 | |
+++ ./toys/posix/uname.c 2021-09-27 13:29:09.000000000 +0900 | |
@@ -69,9 +69,11 @@ void arch_main(void) | |
uname_main(); | |
} | |
+#ifdef PER_LINUX32 | |
#include <sys/personality.h> | |
void linux32_main(void) | |
{ | |
personality(PER_LINUX32); | |
xexec(toys.optc ? toys.optargs : (char *[]){"/bin/sh", 0}); | |
} | |
+#endif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment