r13379: Andrew correctly noted that this breaks -s. Not sure what to do...
authorVolker Lendecke <vlendec@samba.org>
Tue, 7 Feb 2006 23:30:31 +0000 (23:30 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 16:09:57 +0000 (11:09 -0500)
source/rpcclient/rpcclient.c

index 4421e12054c5ba413f66d68770fa288b1d8ab08c..5e66b18263005613e9090770a1e25e39cfe768ce 100644 (file)
@@ -716,16 +716,6 @@ out_free:
        if (!interactive) 
                reopen_logs();
        
-       load_interfaces();
-
-       if (!init_names())
-               return 1;
-
-       /* Load smb.conf file */
-
-       if (!lp_load(dyn_CONFIGFILE,True,False,False,True))
-               fprintf(stderr, "Can't load %s\n", dyn_CONFIGFILE);
-
        /* Parse options */
 
        pc = poptGetContext("rpcclient", argc, (const char **) argv,
@@ -760,6 +750,16 @@ out_free:
 
        poptFreeContext(pc);
 
+       load_interfaces();
+
+       if (!init_names())
+               return 1;
+
+       /* Load smb.conf file */
+
+       if (!lp_load(dyn_CONFIGFILE,True,False,False,True))
+               fprintf(stderr, "Can't load %s\n", dyn_CONFIGFILE);
+
        /*
         * Get password
         * from stdin if necessary