Is this a bug ?

Jack J get_info101 at yahoo.com
Tue Jul 27 01:32:38 GMT 2004


Hello,

Looking at file net.c:

<..clipped..>

BOOL net_find_server(unsigned flags, struct in_addr
*server_ip, char **server_name)
{

    if (opt_host) {
        *server_name = strdup(opt_host);
    }

    if (opt_have_ip) {
        *server_ip = opt_dest_ip;
        if (!*server_name) {
            *server_name =
strdup(inet_ntoa(opt_dest_ip));
        }

  ^^^^^^^^^^^^
why does the code covert IP address to ascii ?

For example if I use:

net join -I 10.1.1.1

The code above does: *server_name = "10.1.1.1"
Should it not do: gethostbyaddr() ??

Is this a bug ?

<..clipped..>

Thanks,




		
__________________________________
Do you Yahoo!?
Take Yahoo! Mail with you! Get it on your mobile phone.
http://mobile.yahoo.com/maildemo 


More information about the samba-technical mailing list