summaryrefslogtreecommitdiff
path: root/tool
diff options
context:
space:
mode:
authorJay Freeman <saurik@saurik.com>2008-02-29 20:55:02 +0000
committerJay Freeman <saurik@saurik.com>2008-02-29 20:55:02 +0000
commit83c66db3e95cdbb6b86893a64b7be0a0ba1ace23 (patch)
tree53166f2fb40356b3ef395c582460a4ab8f89039c /tool
parent5c98bb05c6427af989e78a82486f26423e4a631d (diff)
Toughened up the bootstrap to deal with a few more border cases found in the wild.
git-svn-id: http://svn.telesphoreo.org/trunk@130 514c082c-b64e-11dc-b46d-3d985efe055d
Diffstat (limited to 'tool')
-rw-r--r--tool/symlink.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tool/symlink.c b/tool/symlink.c
index 7ba730d8d..853441f80 100644
--- a/tool/symlink.c
+++ b/tool/symlink.c
@@ -1,6 +1,8 @@
#include <unistd.h>
int main(int argc, const char *argv[]) {
+ setuid(0);
+ setgid(0);
unlink(argv[2]);
symlink(argv[1], argv[2]);
return 0;