Commit Briefs
fix syslog logging on FreeBSD
Due to capsicum(4), opening the log on-demand via syslog(3) fails. openlog(LOG_NDELAY) forces the log to be opened immediately, before we enter capsicum. This doesn't affect OpenBSD (where pledge(2) doesn't stop syslog) nor linux (where the log process is not sandboxed.) Reported by Karl Jeacle, thank you!
don't crash if -n is given without -c
If -n is given without -c, config_path is still NULL and it would crash due to a NULL deference.
don't yyerror if we can't open the file
the global var file could still be NULL and yyerror would crash.
relax openat rule: follow symlinks
O_NOFOLLOW acts only on *the last component*, so on open("/foo/bar/baz") only when baz is a symlink open fails. Checking every path component is not viable. gh issue #5 related (sort of)
typo
Since there was 0 reports in a month can I assume it's not actually used anywhere?