summary refs log tree commit diff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--www/temp.causal.agency/up.c19
1 files changed, 0 insertions, 19 deletions
diff --git a/www/temp.causal.agency/up.c b/www/temp.causal.agency/up.c
index d0177979..561a8901 100644
--- a/www/temp.causal.agency/up.c
+++ b/www/temp.causal.agency/up.c
@@ -26,10 +26,6 @@
 #include <time.h>
 #include <unistd.h>
 
-#ifdef __FreeBSD__
-#include <sys/capsicum.h>
-#endif
-
 #include <kcgi.h>
 #include <kcgihtml.h>
 
@@ -147,13 +143,6 @@ int main(int argc, char *argv[]) {
 	if (error) err(EX_OSERR, "unveil");
 #endif
 
-#ifdef __FreeBSD__
-	cap_rights_t rights;
-	cap_rights_init(&rights, CAP_LOOKUP, CAP_CREATE, CAP_PWRITE);
-	error = cap_rights_limit(dir, &rights);
-	if (error) err(EX_OSERR, "cap_rights_limit");
-#endif
-
 	if (!khttp_fcgi_test()) {
 #ifdef __OpenBSD__
 		error = pledge("stdio wpath cpath proc", NULL);
@@ -168,10 +157,6 @@ int main(int argc, char *argv[]) {
 		error = pledge("stdio wpath cpath", NULL);
 		if (error) err(EX_OSERR, "pledge");
 #endif
-#ifdef __FreeBSD__
-		error = cap_enter();
-		if (error) err(EX_OSERR, "cap_enter");
-#endif
 
 		error = handle(&req);
 		if (error) errx(EX_PROTOCOL, "%s", kcgi_strerror(error));
@@ -192,10 +177,6 @@ int main(int argc, char *argv[]) {
 	error = pledge("stdio wpath cpath recvfd", NULL);
 	if (error) err(EX_OSERR, "pledge");
 #endif
-#ifdef __FreeBSD__
-	error = cap_enter();
-	if (error) err(EX_OSERR, "cap_enter");
-#endif
 
 	for (
 		struct kreq req;
'>Add The Bone Shard EmperorJune McEnroe Suffers a little bit from middle book but I really enjoyed it. Read it faster than the first one too, despite its length. 2022-06-25Bump xterm font size to 12June McEnroe 2022-06-10Handle subshells (and functions) inside substitutionsJune McEnroe 2022-06-10Switch to jorts Install scriptJune McEnroe 2022-06-08Indicate if still reading or no resultsJune McEnroe 2022-06-08Add Maiden, Mother, CroneJune McEnroe Mixed bag like most collections of short stories. Some of them are pretty good. The author of the worst written story also has the worst written bio. 2022-06-05FIRST SHOW IN 2.5 YEARS BABEY!!!June McEnroe 2022-06-03Set line number on File linesJune McEnroe 2022-06-03Stop polling stdin after EOFJune McEnroe 2022-06-02Set TABSIZE=4June McEnroe Absolutely indiscriminately. 2022-06-02Do basic match highlightingJune McEnroe 2022-06-02Clean up parsing a littleJune McEnroe 2022-06-02Don't duplicate path stringJune McEnroe 2022-06-02Use stderr instead of /dev/tty, realloc buffer if lines too longJune McEnroe For some reason I haven't been able to figure out, trying to poll /dev/tty returns POLLNVAL (and this was using 100% CPU looping), but using stderr instead works fine. 2022-06-02Add initial working version of qfJune McEnroe 2022-05-29Set prompt for okshJune McEnroe