about summary refs log tree commit diff homepage
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2021-09-24 19:36:47 -0400
committerJune McEnroe <june@causal.agency>2021-09-26 12:16:45 -0400
commit62a9ed3ab5f65c368b5b08d7e40d4d42426647ed (patch)
tree12a10ea17c78afbba04ec93703f3ab7f84b7c10e
parentLink with -lncursesw (diff)
downloadtorus-62a9ed3ab5f65c368b5b08d7e40d4d42426647ed.tar.gz
torus-62a9ed3ab5f65c368b5b08d7e40d4d42426647ed.zip
OpenBSD: pledge(2) server
-rw-r--r--server.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/server.c b/server.c
index e61f99e..314fccd 100644
--- a/server.c
+++ b/server.c
@@ -392,6 +392,11 @@ int main(int argc, char *argv[]) {
 		dprintf(pidFile, "%ju", (uintmax_t)getpid());
 	}
 
+#ifdef __OpenBSD__
+	error = pledge("stdio unix", NULL);
+	if (error) err(EX_OSERR, "pledge");
+#endif
+
 #ifdef __FreeBSD__
 	error = cap_enter();
 	if (error) err(EX_OSERR, "cap_enter");
lspan='3' class='logmsg'> 2019-09-10Use curl error bufferJune McEnroe 2019-09-10Set Accept-Encoding in titleJune McEnroe Because apparently it's fine for servers to respond with Content-Encoding you didn't ask for, and curl won't decode it if you didn't ask for it. 2019-09-08Set title User-AgentJune McEnroe Some things don't like you if you don't send one. 2019-09-07Add -x flag to titleJune McEnroe 2019-09-07Ignore SIGPIPE in relayJune McEnroe Allows restarting consumers safely. 2019-09-07Add A Memory Called EmpireJune McEnroe 2019-09-05Handle lack of Content-TypeJune McEnroe 2019-09-05Use CURLINFO_CONTENT_TYPEJune McEnroe Oops, didn't see this. 2019-09-05Decode entities in titlesJune McEnroe 2019-09-05Print title as soon as it's availableJune McEnroe 2019-09-05Use CURL_PREFIX to set flagsJune McEnroe 2019-09-05Add titleJune McEnroe 2019-09-04Add Avorter n'est pas tuerJune McEnroe 2019-08-29Unset executable on shell scriptsJune McEnroe 2019-08-29Add long-missing setopt to bin.7June McEnroe 2019-08-29Add editJune McEnroe