http://bugs.winehq.org/show_bug.cgi?id=27250
Summary: Prey receives a truncated hostname from hostname.exe ? Product: Wine Version: 1.3.20 Platform: x86 URL: http://preyproject.com/ OS/Version: Linux Status: NEW Keywords: download, source Severity: minor Priority: P2 Component: programs AssignedTo: wine-bugs@winehq.org ReportedBy: austinenglish@gmail.com CC: arethusa26@gmail.com
See bug 27170 for the original bug. Prey uses 'hostname' to get the hostname, and uses this for the default device name. My current machine's hostname is 'aw21'. With wine-1.3.20-230-g456e48e, when running the prey installer, it thinks my hostname is 'aw2'. As a test, I made a simple exe that returns a longer string: austin@aw21 ~ $ cat foo.c #include <stdio.h> int main(void) { printf("test\n"); return 0; }
and compiled with mingw32, renamed to hostname.exe and set to native. Prey then sees 'test' as my full hostname. Something in the current hostname implementation isn't making prey happy...