diff options
Diffstat (limited to 'main.c')
| -rw-r--r-- | main.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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, |
