On Thu, Mar 12, 2015 at 2:24 AM, Ray Donnelly <[email protected]> wrote:
> We re-sync with Cygwin regularly, so that would be the ideal way
> forward. We can import a patch locally while it's being reviewed by
> Cygwin too, so if you make a patch, send it here too if you don't
> mind. Happily, Cygwin finally moved to using git today instead of cvs
> :-)

Thanks for the information, to my surprise I tested Cygwin on Windows
and the Cygwin hostname.exe works fine with long hostname.

My cygwin version:
$ uname -a
CYGWIN_NT-5.1 1.7.35(0.287/5/3) 2015-03-04 12:07 i686 Cygwin

My MSYS2 version:
$ uname -a
MSYS_NT-5.1 2.0.0(0.284/5/3) 2015-01-21 13:35 i686 Msys

I also found the source code of cygwin_gethostname changed a little
bit since last time I checkout:
1065 extern "C" int
1066 cygwin_gethostname (char *name, size_t len)
1067 {
1068   int res = -1;
1069
1070   __try
1071     {
1072       if (gethostname (name, len))
1073         {
1074           DWORD local_len = len;
1075
1076           if (!GetComputerNameExA (ComputerNameDnsFullyQualified, name,
1077                                    &local_len))
1078             {
1079               set_winsock_errno ();
1080               __leave;
1081             }
1082         }
1083       debug_printf ("name %s", name);
1084       res = 0;
1085     }
1086   __except (EFAULT) {}
1087   __endtry
1088   return res;
1089 }


Not sure if that's the reason. Is there any daily builds of MSYS2 that
I can test this change?


-- 
Regards,
Qian Hong

-
http://www.winehq.org

------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Msys2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/msys2-users

Reply via email to