[Samba] Trouble building Samba 2.2.5 of Solaris 9
Gerald (Jerry) Carter
jerry at samba.org
Tue Aug 27 08:26:00 GMT 2002
On Sun, 25 Aug 2002, J. Alexander Jacocks wrote:
> Looks like inet_aton has cropped up again, in libsmbclient.c:
>
> if (!inet_aton(server, &rem_ip)) {
> DEBUG(4, ("Could not convert IP address %s to struct in_addr\n",
> server));
> errno = ENOENT;
> return NULL;
> }
Here's a patch .....
cheers, jerry
---------------------------------------------------------------------
Hewlett-Packard http://www.hp.com
SAMBA Team http://www.samba.org
-- http://www.plainjoe.org
"Sam's Teach Yourself Samba in 24 Hours" 2ed. ISBN 0-672-32269-2
--"I never saved anything for the swim back." Ethan Hawk in Gattaca--
-------------- next part --------------
Index: libsmb/libsmbclient.c
===================================================================
RCS file: /data/cvs/samba/source/libsmb/libsmbclient.c,v
retrieving revision 1.27.2.22
diff -u -r1.27.2.22 libsmbclient.c
--- libsmb/libsmbclient.c 10 Jul 2002 22:31:06 -0000 1.27.2.22
+++ libsmb/libsmbclient.c 27 Aug 2002 12:23:30 -0000
@@ -328,7 +328,7 @@
fstring remote_name;
struct in_addr rem_ip;
- if (!inet_aton(server, &rem_ip)) {
+ if ((rem_ip.s_addr=inet_addr(server)) == INADDR_NONE) {
DEBUG(4, ("Could not convert IP address %s to struct in_addr\n", server));
errno = ENOENT;
return NULL;
More information about the samba
mailing list