tfix unveil, the permissions parameter is mandatory - vote - simple cgi voting … | |
git clone git://src.adamsgaard.dk/vote | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit b0c8f6f22789317760958fec93e974faea523241 | |
parent e1ed36fc26b81cb79ca811aeec29e844e4115d40 | |
Author: Hiltjo Posthuma <[email protected]> | |
Date: Sun, 4 Oct 2020 15:52:13 +0200 | |
fix unveil, the permissions parameter is mandatory | |
Signed-off-by: Anders Damsgaard <[email protected]> | |
Diffstat: | |
M vote.c | 2 +- | |
1 file changed, 1 insertion(+), 1 deletion(-) | |
--- | |
diff --git a/vote.c b/vote.c | |
t@@ -433,7 +433,7 @@ main() | |
const char *errstr; | |
struct stat sb; | |
- if (unveil(getenv("PWD"), NULL) == -1 || unveil(NULL, NULL) == -1) { | |
+ if (unveil(POLLS_DIR, "rwc") == -1) { | |
http_status(500); | |
err(1, "unveil"); | |
} |