Fix error mapping in gethostname

Corinna Vinschen corinna-cygwin@cygwin.com
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
>     * net.cc: Fix buffer size error handling in cygwin_gethostname.

Good catch.  Patch applied.


Thanks,
Corinna

-- 
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: <http://cygwin.com/pipermail/cygwin-patches/attachments/20150331/8f9ce801/attachment.sig>


More information about the Cygwin-patches mailing list