summaryrefslogtreecommitdiff
path: root/tool/symlink.c
diff options
context:
space:
mode:
Diffstat (limited to 'tool/symlink.c')
-rw-r--r--tool/symlink.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/tool/symlink.c b/tool/symlink.c
new file mode 100644
index 000000000..7ba730d8d
--- /dev/null
+++ b/tool/symlink.c
@@ -0,0 +1,7 @@
+#include <unistd.h>
+
+int main(int argc, const char *argv[]) {
+ unlink(argv[2]);
+ symlink(argv[1], argv[2]);
+ return 0;
+}