From noticing the testsuite failure, I found what looks like a bug in ne_strerror. On x86 Solaris, strerror_r does not truncate strings. Instead, it returns 34 (ERANGE) if the buffer is not large enough (the man page here is not helpful, although the letter of the doc clearly allows this behavior).

Only way I can think of to fix this is to check for the failure, and it a failure occurs, to alloc a larger buffer and retry until strerror_r succeeds, and then play like it was glibc's strerror and strncpy the result back into the original buffer (this time truncating it).

I'll probably write a patch soon.

--
Matthew
HIPPOS feel unacknowledged. HIPPOS get angry.
> PRAISE HIPPOS
HIPPOS seem somewhat placated.

_______________________________________________
neon mailing list
[email protected]
http://mailman.webdav.org/mailman/listinfo/neon

Reply via email to