summaryrefslogtreecommitdiff
path: root/tool
diff options
context:
space:
mode:
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;