Comment by Good4boothee
2 days ago
> did musl really feel the need to accommodate bad implementations like this
I don't know about this specific case but in general? Yes, totally. No one is going to fix all existing software that depends on libs behaving exactly as glibc, you have to accept some trade-offs. Either your new implementation stops being perfectly simple and clean, or no one uses it.
it's not "glibc behavior", returning null on error is in the spec
To be fair the API is older than the POSIX spec.
See also: Hyrum's Law