Fix bug #7302, make Xn.hosts work from the
Microsoft Windows install directory on Xming. (Colin Harrison)
This commit is contained in:
parent
1880defe4e
commit
e1f4565be5
|
@ -1188,7 +1188,11 @@ ResetHosts (char *display)
|
||||||
FreeHost (host);
|
FreeHost (host);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if defined WIN32 && defined __MINGW32__
|
||||||
|
#define ETC_HOST_PREFIX "X"
|
||||||
|
#else
|
||||||
#define ETC_HOST_PREFIX "/etc/X"
|
#define ETC_HOST_PREFIX "/etc/X"
|
||||||
|
#endif
|
||||||
#define ETC_HOST_SUFFIX ".hosts"
|
#define ETC_HOST_SUFFIX ".hosts"
|
||||||
fnamelen = strlen(ETC_HOST_PREFIX) + strlen(ETC_HOST_SUFFIX) +
|
fnamelen = strlen(ETC_HOST_PREFIX) + strlen(ETC_HOST_SUFFIX) +
|
||||||
strlen(display) + 1;
|
strlen(display) + 1;
|
||||||
|
|
Loading…
Reference in New Issue