1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-09 08:58:35 +03:00

Perform lp_load() before popt to fix -W option.

(This used to be commit d20f4bf5d84f435a7b4b692bf33f05f4ec871a50)
This commit is contained in:
Tim Potter 2003-04-28 07:03:08 +00:00
parent a2e4ac9eef
commit d31cb1b468

View File

@ -537,6 +537,17 @@ out_free:
setlinebuf(stdout);
/* the following functions are part of the Samba debugging
facilities. See lib/debug.c */
setup_logging("rpcclient", interactive);
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,
@ -571,17 +582,6 @@ out_free:
poptFreeContext(pc);
/* the following functions are part of the Samba debugging
facilities. See lib/debug.c */
setup_logging("rpcclient", interactive);
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);
load_interfaces();
if (!init_names())