tvote.c: remove now unnecessary platform check for pledge(2)/unveil(2) - vote - simple cgi voting system for web and gopher (HTM) git clone git://src.adamsgaard.dk/vote (DIR) Log (DIR) Files (DIR) Refs (DIR) README (DIR) LICENSE --- (DIR) commit a813862768457b63444e4006b480ec4627a4cd77 (DIR) parent dcdc78dcfa9f05729c646ca66f3a37e9ca074b4b (HTM) Author: Anders Damsgaard <anders@adamsgaard.dk> Date: Sun, 27 Sep 2020 08:09:19 +0200 vote.c: remove now unnecessary platform check for pledge(2)/unveil(2) Diffstat: M vote.c | 2 -- 1 file changed, 0 insertions(+), 2 deletions(-) --- (DIR) diff --git a/vote.c b/vote.c t@@ -85,7 +85,6 @@ main() { struct stat sb; -#ifdef __OpenBSD__ if (unveil(getenv("PWD"), NULL) == -1 || unveil(NULL, NULL) == -1) { fprintf(stderr, "unveil: %s\n", strerror(errno)); die(500); t@@ -95,7 +94,6 @@ main() fprintf(stderr, "pledge: %s\n", strerror(errno)); die(500); } -#endif if (stat(POLLS_DIR, &sb) == -1) { if (mkdir(POLLS_DIR, 0755) == -1) {