This is the mail archive of the cygwin-patches mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Fix error mapping in gethostname


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

Attachment: pgpa7xoYz8pT2.pgp
Description: PGP signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]