summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-rw-r--r--main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/main.c b/main.c
index 71ae864..cffd658 100644
--- a/main.c
+++ b/main.c
@@ -85,6 +85,7 @@ main(void)
}
/* A bit of security cannot hurt */
+#ifdef __OpenBSD__
if (-1 == unveil(data_dir, "rwc")
|| -1 == unveil(TEMPLATE_DIR, "r")
|| -1 == unveil(NULL, NULL)) {
@@ -95,6 +96,7 @@ main(void)
http_exit(&r, KHTTP_500, "Pledge failed: %s", strerror(errno));
goto end;
}
+#endif /* __OpenBSD__ */
/*
* Make sure basic request parameters are as expected : GET or POST,