Skip to content

Instantly share code, notes, and snippets.

@wtnb75
Last active September 28, 2021 06:29
Show Gist options
  • Save wtnb75/8ff6053403a838ec9673c5e70b499011 to your computer and use it in GitHub Desktop.
Save wtnb75/8ff6053403a838ec9673c5e70b499011 to your computer and use it in GitHub Desktop.
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