summaryrefslogtreecommitdiff
path: root/scripts/runserver.c
diff options
context:
space:
mode:
authorMarkus Warg <mw@it-sls.de>2010-03-29 09:54:06 +0200
committerMarkus Warg <mw@it-sls.de>2010-03-29 09:54:06 +0200
commit9dceece06fbdc98add6f76f0b1aec05891a394c4 (patch)
treef7227c28ca5f79f30c2ec81ba1a09a4fe3972436 /scripts/runserver.c
parent5b68967def224a00f54eb54946ff17301bbd3cdb (diff)
downloadcacert-devel-9dceece06fbdc98add6f76f0b1aec05891a394c4.tar.gz
cacert-devel-9dceece06fbdc98add6f76f0b1aec05891a394c4.tar.xz
cacert-devel-9dceece06fbdc98add6f76f0b1aec05891a394c4.zip
remove cacert/ prefix
Diffstat (limited to 'scripts/runserver.c')
-rw-r--r--scripts/runserver.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/scripts/runserver.c b/scripts/runserver.c
new file mode 100644
index 0000000..d3cb985
--- /dev/null
+++ b/scripts/runserver.c
@@ -0,0 +1,13 @@
+#include<stdio.h>
+
+int main(int argc, char *argv[])
+{
+ char *args[1];
+
+ args[0] = NULL;
+
+ setuid(0);
+ setgid(0);
+
+ execv("/www/scripts/servercerts.php", args);
+}