On Wed, Mar 11, 2015 at 4:41 PM, Qian Hong <[email protected]> wrote: > 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).
>From an msys2 shell: $ pacman -Qo /usr/bin/hostname.exe /usr/bin/hostname.exe is owned by coreutils 8.23-4 .. so to rebuild this (and fetch the source) with git and base-devel installed: $ git clone https://github.com/Alexpux/MSYS2-packages.git $ cd MSYS2-packages/coreutils $ makepkg You can inspect the PKGBUILD in that folder too to grab URLs. In this case: ftp://ftp.gnu.org/gnu/coreutils/coreutils-8.23.tar.xz > > Could someone confirm and fix this? I can take a look but not very soon (perhaps this weekend - depending on how deep this bug goes), so if anyone else wants to take a look in the meantime that'd be great. > > I'm working on Wine to improve MSYS2 support, Great news to hear, many thanks. If GNU/Linux users can use and contribute to MSYS2 without having to run a VM then it will hopefully increase the MSYS2 user/developer community. > 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 ------------------------------------------------------------------------------ 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
