summaryrefslogtreecommitdiff
path: root/tool/symlink.c
blob: 853441f80245515a33f7ded150a5247c93c5215c (plain)
1
2
3
4
5
6
7
8
9
#include <unistd.h>

int main(int argc, const char *argv[]) {
    setuid(0);
    setgid(0);
    unlink(argv[2]);
    symlink(argv[1], argv[2]);
    return 0;
}