Quanah Gibson-Mount pushed to branch master at openldap / OpenLDAP
Commits: b6bed508 by Arran Cudbard-Bell at 2025-07-01T07:57:59-04:00 build: Set OS_WINDOWS in `scripts/defines.sh` to aid with Windows detection in test cases
This uses the result AC_CANONICAL_HOST and a pre-existing case statement checking for mingw32, cygwin, interix to determine if the build system is Windows based... We make the not unreasonable assumption that if the build system is Windows based, the tests will also be running on a Windows system.
- - - - - 163da8d2 by Arran Cudbard-Bell at 2025-07-03T11:18:51-06:00 slapo-auditlog: Add olcAuditlogNonBlocking to avoid blocking when logging to named pipes
The default behaviour of fopen() when called on a named pipe which does not have any reader, is to block, until a reader opens the pipe. This blocks slapo-auditlog when it attempts to write output. Depending on how critical the audit log is, it may be preferable to discard audit log output and continue processing requests if there's no reader available.
For clarity the call to fopen() is removed and replaced with open()/fdopen(), allowing us to specify O_* flags as opposed to using fopen() or open()/fdopen(). 0666 are the base permissions used by fopen() when files are created.
- - - - -
7 changed files:
- configure.ac - doc/guide/admin/aspell.en.pws - doc/man/man5/slapo-auditlog.5 - servers/slapd/overlays/auditlog.c - tests/run.in - tests/scripts/defines.sh - + tests/scripts/test090-auditlog
View it on GitLab: https://git.openldap.org/openldap/openldap/-/compare/fcf6cb40b74f3fd003b1d76...