On Sun, Mar 05, 2023 at 04:34:40PM +0100, Petr Vaněk wrote: > Printf test suite fails on systems with musl libc because tests for "%m" > and "%M" formats expect "Input/output error" message but musl returns > "I/O error". Proposed change compares the printf output with string > returned from strerror function for EIO constant.
Thanks, merged. Note that the string returned by strerror() can be changed by subsequent calls to strerror(), including from inside bsprintf(), so i added string duplication call around it: - const char *io_error_str = strerror(EIO); + const char *io_error_str = lp_strdup(tmp_linpool, strerror(EIO)); -- Elen sila lumenn' omentielvo Ondrej 'Santiago' Zajicek (email: santi...@crfreenet.org) OpenPGP encrypted e-mails preferred (KeyID 0x11DEADC3, wwwkeys.pgp.net) "To err is human -- to blame it on a computer is even more so."