diff options
author | Jeremy Allison <jra@samba.org> | 2001-06-18 17:56:44 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2001-06-18 17:56:44 +0000 |
commit | 4379023a4f1b56ed4f282cf8423be959b88ab46d (patch) | |
tree | ea6f14dc6e4c864637cad5a4695b34333376dff9 /source/lib/util_sock.c | |
parent | fefc9afea6b2e3a557b5e13cfb01837f3c51ef15 (diff) | |
download | samba-4379023a4f1b56ed4f282cf8423be959b88ab46d.tar.gz samba-4379023a4f1b56ed4f282cf8423be959b88ab46d.tar.xz samba-4379023a4f1b56ed4f282cf8423be959b88ab46d.zip |
Fixes backported from HEAD to get rid of gethostbyname stuff.
Added "Jim McDonough" <jmcd@us.ibm.com> fixes for directory ACL get/set
from Win9x.
Jeremy.
Diffstat (limited to 'source/lib/util_sock.c')
-rw-r--r-- | source/lib/util_sock.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/source/lib/util_sock.c b/source/lib/util_sock.c index 0aa328c5d15..b0426e3809f 100644 --- a/source/lib/util_sock.c +++ b/source/lib/util_sock.c @@ -106,9 +106,9 @@ static void print_socket_options(int s) for (; p->name != NULL; p++) { if (getsockopt(s, p->level, p->option, (void *)&value, &vlen) == -1) { - DEBUG(3,("Could not test socket option %s.\n", p->name)); + DEBUG(5,("Could not test socket option %s.\n", p->name)); } else { - DEBUG(3,("socket option %s = %d\n",p->name,value)); + DEBUG(5,("socket option %s = %d\n",p->name,value)); } } } @@ -791,9 +791,9 @@ int open_socket_in(int type, int port, int dlevel,uint32 socket_addr, BOOL rebin { DEBUG(0,("gethostname failed\n")); return -1; } /* get host info */ - if ((hp = Get_Hostbyname(host_name)) == 0) + if ((hp = sys_gethostbyname(host_name)) == 0) { - DEBUG(0,( "Get_Hostbyname: Unknown host %s\n",host_name)); + DEBUG(0,( "sys_gethostbyname: Unknown host %s\n",host_name)); return -1; } @@ -945,8 +945,8 @@ static BOOL matchname(char *remotehost,struct in_addr addr) struct hostent *hp; int i; - if ((hp = Get_Hostbyname(remotehost)) == 0) { - DEBUG(0,("Get_Hostbyname(%s): lookup failure.\n", remotehost)); + if ((hp = sys_gethostbyname(remotehost)) == 0) { + DEBUG(0,("sys_gethostbyname(%s): lookup failure.\n", remotehost)); return False; } |