Hi, According to http://support.microsoft.com/kb/909264/en-us, Windows NetBios name supports up to 15 bytes only.
However, when I test on Windows XP, I found while the control panel warns about hostname too long during setting, after a reboot the new setting still works. After setting hostname to testlong1long2long3long4long5long6long7long8, hostname.exe from MSYS2 fails to detect the hostname. I don't know where to get the source code of hostname.exe, but it seems hardcoded buffer length to 33 in gethostname(name, len). Could someone confirm and fix this? I'm working on Wine to improve MSYS2 support, I discovered this issue originally by running `pacman-key --init` and though it was a Wine bug, later I found it seems like an application bug. (BTW hostname length on Linux system might usually larger than 15, it's up to HOST_NAME_MAX which might be 64 or longer.) Anyway a patch to prevent similar case fail silently on Wine is sent to Wine: http://source.winehq.org/patches/data/109804 Thanks! -- 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
