about summary refs log tree commit diff
path: root/log.c (follow)
Commit message (Collapse)AuthorAge
* Sanitize leading dots from log path componentsJune McEnroe2022-04-20
| | | | | | | | | | | Prevent directory traversal by sanitizing leading dots as well as slashes from log path components, which can be controlled by the server. Side effect of preventing hidden dotfiles is a bonus, I think. Also check that the full path actually fits in the buffer. Reported-by: Samanta Navarro <ferivoz@riseup.net>
* Import refactored xdg.c from pounceJune McEnroe2021-10-16
|
* FreeBSD: Avoid caph_stream_rights(3)June McEnroe2021-07-13
| | | | | | | | caph_stream_rights(3) doesn't exist before FreeBSD 13.0 and there's no good reason to create that dependency. I still run servers on FreeBSD 12. This is a partial revert of cbc9545cb3f76733030c867f32ddb6a922cd2907.
* FreeBSD: Use capsicum_helpers.hJune McEnroe2021-06-28
|
* FreeBSD: Limit rights on log directoryJune McEnroe2021-06-25
|
* Keep log directory open, use mkdirat(2) and openat(2)June McEnroe2021-06-25
|
* Open log files with CLOEXECJune McEnroe2021-06-21
|
* Check fprintf return values rather than ferrorJune McEnroe2021-01-10
|
* Say "OpenSSL" in additional permission noticesJune McEnroe2020-08-04
| | | | LibreSSL is "a modified version of that library".
* Add additional permission for linking with LibreSSLJune McEnroe2020-06-08
| | | | https://www.gnu.org/licenses/gpl-faq.en.html#GPLIncompatibleLibs
* Add logging functionsJune McEnroe2020-03-25
| | | | The mkdir dance is a bit awkward...
* Remove legacy codeJune McEnroe2020-02-11
|
* Make copyright headers consistentJune McEnroe2019-07-27
|
* Add M-l to list the logJune McEnroe2019-02-25
|
* Use getline in place of fgetlnJune McEnroe2019-01-25
|
* Measure length of log timestamp more consistentlyJune McEnroe2018-11-30
|
* Strip timestamps from log replayJune McEnroe2018-11-29
| | | | | Also fix string length. %.*s does not behave as one might expect when writing wchar_t.
* Add basic log replayJune McEnroe2018-11-29
|
* Use PascalCase for constantsJune McEnroe2018-09-02
| | | | Begone underscores.
* Do not set log files executableJune McEnroe2018-08-18
| | | | Oops.
* Add loggingJune McEnroe2018-08-17
The reason logFmt takes a timestamp as a parameter is to support IRCv3 server-time in the future to accurately log the znc buffer. Hopefully.