From ad6d233adf62220e1c0c1492ba67cf00f341588e Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Tue, 2 Aug 2005 19:46:11 +0000 Subject: r8937: allow to use non-default smb.conf in rpcclient Guenther (This used to be commit c0f3f12a6237842987845f4b4c787e25a632f2f5) --- source3/rpcclient/rpcclient.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'source3/rpcclient/rpcclient.c') diff --git a/source3/rpcclient/rpcclient.c b/source3/rpcclient/rpcclient.c index feaeae4da6..3112db19ad 100644 --- a/source3/rpcclient/rpcclient.c +++ b/source3/rpcclient/rpcclient.c @@ -667,11 +667,6 @@ out_free: if (!interactive) reopen_logs(); - /* Load smb.conf file */ - - if (!lp_load(dyn_CONFIGFILE,True,False,False)) - fprintf(stderr, "Can't load %s\n", dyn_CONFIGFILE); - /* Parse options */ pc = poptGetContext("rpcclient", argc, (const char **) argv, @@ -711,6 +706,11 @@ out_free: if (!init_names()) return 1; + /* Load smb.conf file */ + + if (!lp_load(dyn_CONFIGFILE,True,False,False)) + fprintf(stderr, "Can't load %s\n", dyn_CONFIGFILE); + /* * Get password * from stdin if necessary -- cgit