From 4c319ad04699b236d038d141323c7586c5bf0983 Mon Sep 17 00:00:00 2001 From: Samba Release Account Date: Mon, 25 Aug 1997 22:18:31 +0000 Subject: charset.c : Add mapping for code page 932 (KANJI). client.c : Fix crash bug. Add code to use BUFFER_SIZE for NetServerEnum calls. namepacket.c: Fixed cast. nmbsync.c : Add code to use BUFFER_SIZE for NetServerEnum calls. smb.h : Set default client code page to 932 for KANJI. system.c : Remove vendor specific code that crept in :-). util.c : Added #define to allow Samba to behave as Win95 when doing KANJI case insensitivity tests. Jeremy (jallison@whistle.com) (This used to be commit 7f7d2faa07b81ad435b2acc9318bc39d813020c6) --- source3/lib/system.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'source3/lib/system.c') diff --git a/source3/lib/system.c b/source3/lib/system.c index 39f845b30eb..447a4f88aca 100644 --- a/source3/lib/system.c +++ b/source3/lib/system.c @@ -378,6 +378,7 @@ apparent reason. ****************************************************************************/ struct hostent *sys_gethostbyname(char *name) { +#ifdef REDUCE_ROOT_DNS_LOOKUPS char query[256], hostname[256]; char *domain; @@ -406,5 +407,8 @@ struct hostent *sys_gethostbyname(char *name) sprintf(query, "%s%s", name, domain); return(gethostbyname(query)); +#else /* REDUCE_ROOT_DNS_LOOKUPS */ + return(gethostbyname(name)); +#endif /* REDUCE_ROOT_DNS_LOOKUPS */ } -- cgit