Fix error mapping in gethostname

Corinna Vinschen
Tue Mar 31 19:20:00 GMT 2015

On Mar 31 15:23, Renato Silva wrote:
> The gethostname function has a problem where a small buffer size will
> not produce an accurate errno. This is because the Windows error is
> not being appropriately mapped. This causes programs such as hostname
> from coreutils to fail because they are not informed about the long
> name.
> Changelog entry:
> 2015-03-31  Renato Silva
>     * Fix buffer size error handling in cygwin_gethostname.

Good catch.  Patch applied.


Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <>

More information about the Cygwin-patches mailing list