}
if (reason == POPT_CALLBACK_REASON_POST) {
- struct messaging_context *msg_ctx = NULL;
bool ok;
- msg_ctx = cmdline_messaging_context(get_dyn_CONFIGFILE());
- if (msg_ctx == NULL) {
- fprintf(stderr, "Unable to initialize "
- "messaging context\n");
- }
-
ok = lp_load_client(get_dyn_CONFIGFILE());
if (!ok) {
const char *pname = poptGetInvocationName(con);
while (extra_argv[extra_argc]) extra_argc++;
}
- cmdline_messaging_context(get_dyn_CONFIGFILE());
-
lp_load_global(get_dyn_CONFIGFILE());
if ((extra_argc < 2) || (extra_argc > 5)) {
exit( 1 );
}
- cmdline_messaging_context(configfile == NULL ?
- get_dyn_CONFIGFILE() : configfile);
-
if ( configfile == NULL ) {
lp_load_global(get_dyn_CONFIGFILE());
} else if (!lp_load_global(configfile)) {
poptFreeContext(pc);
- cmdline_messaging_context(get_dyn_CONFIGFILE());
-
if (!lp_load_global(get_dyn_CONFIGFILE())) {
d_fprintf(stderr, "ntlm_auth: error opening config file %s. Error was %s\n",
get_dyn_CONFIGFILE(), strerror(errno));
if (user_name == NULL)
user_name = poptGetArg(pc);
- cmdline_messaging_context(get_dyn_CONFIGFILE());
-
if (!lp_load_global(get_dyn_CONFIGFILE())) {
fprintf(stderr, "Can't load %s - run testparm to debug it\n", get_dyn_CONFIGFILE());
exit(1);
setlinebuf(stdout);
- cmdline_messaging_context(get_dyn_CONFIGFILE());
lp_load_with_registry_shares(get_dyn_CONFIGFILE());
/* check for initializing secrets.tdb first */
popt_burn_cmdline_password(argc, argv);
- cmdline_messaging_context(get_dyn_CONFIGFILE());
-
if (smbc_init(get_auth_data, opt.debuglevel) < 0) {
fprintf(stderr, "Unable to initialize libsmbclient\n");
ret= 1;
usage();
}
- cmdline_messaging_context(configfile);
-
if (!lp_load_global(configfile)) {
fprintf(stderr, "Can't load %s - run testparm to debug it\n",
configfile);
goto done;
}
- cmdline_messaging_context(config_file);
-
fprintf(stderr,"Load smb config files from %s\n",config_file);
if (!lp_load_with_registry_shares(config_file)) {