Fix bug #7302, make Xn.hosts work from the
Microsoft Windows install directory on Xming. (Colin Harrison)
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user