mirror of
https://github.com/samba-team/samba.git
synced 2025-12-12 12:23:50 +03:00
Adding the same change as was added to 1.9.18 branch to add the
"name resolve order" parameter.
source/Makefile: Re-ordered link for name resolve order code.
source/clientgen.c:
source/clientutil.c: Added calls to resolve_name().
source/includes.h: Added HPUX zombie fix.
source/loadparm.c: Added new name resolve order parameter.
source/namequery.c: Re-wrote to include parsing of lmhosts file, new resolve_name()
function requested by John.
source/nmbd.c: Tell resolve_name not to do WINS lookups if we are the WINS server.
source/nmbd_lmhosts.c: Call lmhosts parsing functions in namequery.c
source/password.c: Call resolve_name() to lookup security=server name.
source/reply.c:
source/time.c:
source/trans2.c: "fake directory create times" fix from Jim Hague - hague@research.canon.com.au.
source/util.c: Removed isalnum() test in Get_Hostname() that seems to cause
problems on many systems.
Jeremy.
This commit is contained in:
@@ -4047,11 +4047,20 @@ struct hostent *Get_Hostbyname(char *name)
|
||||
exit(0);
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* This next test is redundent and causes some systems (with
|
||||
* broken isalnum() calls) problems.
|
||||
* JRA.
|
||||
*/
|
||||
|
||||
#if 0
|
||||
if (!isalnum(*name2))
|
||||
{
|
||||
free(name2);
|
||||
return(NULL);
|
||||
}
|
||||
#endif /* 0 */
|
||||
|
||||
ret = sys_gethostbyname(name2);
|
||||
if (ret != NULL)
|
||||
|
||||
Reference in New Issue
Block a user