diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2016-03-02 18:08:32 -0800 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2016-03-02 18:08:32 -0800 |
commit | b09356a195cb352c5b220f60bc78ac9bba47cb66 (patch) | |
tree | 00d581e2fd1393fff89ed1a81fd8386944ac6446 | |
parent | dce99ded75994d9aca90746563d3da1857af809c (diff) | |
download | tamarind-b09356a195cb352c5b220f60bc78ac9bba47cb66.tar.gz tamarind-b09356a195cb352c5b220f60bc78ac9bba47cb66.tar.bz2 tamarind-b09356a195cb352c5b220f60bc78ac9bba47cb66.zip |
Remove geteuid check; we don't need privs any more.
-rw-r--r-- | Makefile | 19 | ||||
-rw-r--r-- | startup.txr | 4 | ||||
-rw-r--r-- | sutxr.cgi.c | 10 |
3 files changed, 0 insertions, 33 deletions
diff --git a/Makefile b/Makefile deleted file mode 100644 index 3785f70..0000000 --- a/Makefile +++ /dev/null @@ -1,19 +0,0 @@ -CFLAGS += -O2 -DPWD=\"$(shell pwd)\" - -PROG := sutxr.cgi - -.PHONY: all -all: $(PROG) perms - -$(PROG):: $(PROG).c - -$(PROG):: - chmod u+s $@ - -.PHONY: perms - -perms: - chmod u+s main.txr - -clean: - -rm $(PROG) diff --git a/startup.txr b/startup.txr index 39ba7bc..c6ab35a 100644 --- a/startup.txr +++ b/startup.txr @@ -6,10 +6,6 @@ @ (error-form "Configuration Missing" "Cannot read /etc/mailname file") @ (fail) @ (end) -@ (if (not (zerop (geteuid)))) -@ (error-form "Installation Problem" "Wrong script permissions") -@ (fail) -@ (end) @ (cases) @ (next :env) @ (skip) diff --git a/sutxr.cgi.c b/sutxr.cgi.c deleted file mode 100644 index 02a4861..0000000 --- a/sutxr.cgi.c +++ /dev/null @@ -1,10 +0,0 @@ -#include <unistd.h> -#include <stdlib.h> - -int main(void) -{ - execl("/usr/local/bin/txr", - "/usr/local/bin/txr", - PWD "/main.txr", (char *) 0); - return EXIT_FAILURE; -} |