Chris Hegarty wrote:
Okay, must be a glibc thing. The changes you have look okay to me but would be nice to ensure that the hostname is null-terminated (for platforms that don't fail with ENAMETOOLONG).:I tested on a few different Linux machines and instrumented the error handling code, it is definitely failing with ENAMETOOLONG.
-Alan.