diff options
author | Jay Freeman <saurik@saurik.com> | 2008-02-14 14:32:59 +0000 |
---|---|---|
committer | Jay Freeman <saurik@saurik.com> | 2008-02-14 14:32:59 +0000 |
commit | 6b964b69935fcc52a1c0a95695ca436e00b6690f (patch) | |
tree | a863dd50c7cc7fe19b9759360ed4d5b545f9ba0f /tool/godmode.c | |
parent | 459c9779557e19437de4a02f6311c322989228b3 (diff) |
Drastically reworked bootstrap package.
git-svn-id: http://svn.telesphoreo.org/trunk@88 514c082c-b64e-11dc-b46d-3d985efe055d
Diffstat (limited to 'tool/godmode.c')
-rw-r--r-- | tool/godmode.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tool/godmode.c b/tool/godmode.c new file mode 100644 index 000000000..363309f95 --- /dev/null +++ b/tool/godmode.c @@ -0,0 +1,8 @@ +#include <sys/types.h> +#include <unistd.h> + +int main(int argc, char *argv[]) { + setuid(0); + setgid(0); + execvp(argv[1], argv + 1); +} |