Author: abartlet
Date: 2006-01-13 00:54:53 +0000 (Fri, 13 Jan 2006)
New Revision: 12881

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=12881

Log:
Hard-coded defaults are silly.  We have smb.conf for a reason.

Andrew Bartlett

Modified:
   branches/SAMBA_4_0/source/libnet/libnet.c


Changeset:
Modified: branches/SAMBA_4_0/source/libnet/libnet.c
===================================================================
--- branches/SAMBA_4_0/source/libnet/libnet.c   2006-01-13 00:38:35 UTC (rev 
12880)
+++ branches/SAMBA_4_0/source/libnet/libnet.c   2006-01-13 00:54:53 UTC (rev 
12881)
@@ -24,9 +24,6 @@
 
 struct libnet_context *libnet_context_init(struct event_context *ev)
 {
-       /* default name resolution methods */
-       const char *nr_methods[] = { "lmhosts", "wins", "host", "bcast", NULL };
-
        struct libnet_context *ctx;
 
        /* create brand new libnet context */ 
@@ -46,7 +43,7 @@
        ctx->event_ctx = ev;
 
        /* name resolution methods */
-       ctx->name_res_methods = str_list_copy(ctx, nr_methods);
+       ctx->name_res_methods = str_list_copy(ctx, lp_name_resolve_order());
        
        return ctx;
 }

Reply via email to