summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorVincent Douillet <vincent@vdouillet.fr>2024-09-09 13:52:35 +0200
committerVincent Douillet <vincent@vdouillet.fr>2024-09-10 12:01:05 +0200
commit4e921ffa31fdca2425d326efda1c6d9ad190359a (patch)
tree8d0fe130bd26dedb5c0754249734608217bbd6b9 /main.c
parentd7edafe299d44a0bec9d29e2b3a4ca853ffa1a80 (diff)
upload: handle form submission
Diffstat (limited to 'main.c')
-rw-r--r--main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.c b/main.c
index 137ac14..430bc6a 100644
--- a/main.c
+++ b/main.c
@@ -74,7 +74,7 @@ main(void)
http_exit(NULL, KHTTP_500, "Data dir not configured");
/* A bit of security cannot hurt */
- if (-1 == unveil(data_dir, "r")
+ if (-1 == unveil(data_dir, "rwc")
|| -1 == unveil(TEMPLATE_DIR, "r")
|| -1 == unveil(NULL, NULL))
http_exit(&r, KHTTP_500, "Unveil failed: %s", strerror(errno));