Commit Briefs

Omar Polo

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!


Omar Polo

sync


Omar Polo

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.


Omar Polo

don't yyerror if we can't open the file

the global var file could still be NULL and yyerror would crash.



Omar Polo

sync





Omar Polo

gmid.1: document logging


Omar Polo

sync


Omar Polo

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)


Omar Polo

typo

Since there was 0 reports in a month can I assume it's not actually used anywhere?


Omar Polo

allow fstat64

used by glibc on aarch64. Found and tested by pine, thanks!


Omar Polo

use \e instead of \\ as a mean to escape \

Just read in a mail from Ingo to tech@ > Using \\ outside macro definitions (i.e., outside the bodies of roff(7) > .de and similar requests) is almost always wrong even in low-level roff > code, and \\ must never be used in manual pages.