Commit Graph

19 Commits

Author SHA1 Message Date
Florian Obser f28f906b6a stat(2) can fail, rearange error handling to handle this 2020-12-05 09:39:12 +01:00
Florian Obser 75cf996cec safely drop privs 2020-12-05 09:39:12 +01:00
Florian Obser 8d69d84784 errno is not set here 2020-12-05 09:39:12 +01:00
Florian Obser 27bc29da7a sys/ includes go at the front 2020-12-05 09:39:12 +01:00
Florian Obser 3d18122b7e main does not need a prototype 2020-12-05 09:39:12 +01:00
Florian Obser 5b3dc1dd02 Do not include c sources 2020-12-05 09:39:12 +01:00
Solene Rapenne 345215fa9b Code refactoring: get_file_mime got into mime.c and all security code moved into a procedure 2020-12-04 19:08:36 +01:00
Solene Rapenne e9c3945ede Add syslog messages 2020-12-04 18:55:31 +01:00
Solene Rapenne a05fdee016 Remove database iterator, no longer useful after the MIME database change. Proposed by oa. 2020-12-03 23:03:08 +01:00
Solene Rapenne b3bb3b2f91 Add chroot() feature 2020-12-03 22:59:39 +01:00
Solene Rapenne 2cf92e196c Move the license from the code to dedicated LICENSE file 2020-12-03 21:22:22 +01:00
Solene Rapenne cbcf526d76 Make the MIME database as a global variable, it's a lot more cleaner. (thanks to oa for recommendation) 2020-12-03 21:06:17 +01:00
Solene Rapenne 1e0bb0368c Add MIME support + according tests 2020-12-02 19:59:52 +01:00
Solene Rapenne dd201d73d9 Add a flag to change the default language in the return status code 2020-12-02 18:07:10 +01:00
Solene Rapenne 615079e26c Add virtualhost features with a flag + according tests 2020-12-02 15:31:21 +01:00
Solene Rapenne 24aa4ba284 run OpenBSDindent(1) to fix coding style 2020-12-02 13:32:39 +01:00
Solene Rapenne 25977754ac Fix the License name, it's BSD2 and not MIT 2020-12-02 13:29:21 +01:00
Solene Rapenne ddb799c866 Add ifdef OpenBSD for pledge/unveil, so it should compile on other OSes 2020-12-01 23:41:55 +01:00
Solene Rapenne c2d813c0f1 Init vger 2020-12-01 23:39:05 +01:00