bool lp_load_client_no_reinit(const char *file_name);
bool lp_load_with_registry_shares(const char *pszFname,
bool save_defaults,
- bool add_ipc,
bool initialize_globals);
int lp_numservices(void);
void lp_dump(FILE *f, bool show_defaults, int maxtoprint);
bool lp_load_with_registry_shares(const char *pszFname,
bool save_defaults,
- bool add_ipc,
bool initialize_globals)
{
return lp_load_ex(pszFname,
false, /* global_only */
save_defaults,
- add_ipc,
+ false, /* add_ipc */
initialize_globals,
true, /* allow_include_registry */
true); /* load_all_shares*/
printf("call lp_load() #%d: ", i+1);
if (!lp_load_with_registry_shares(config_file,
True, /* save defaults */
- False, /*add_ipc */
True)) /*init globals */
{
printf("ERROR.\n");
setlinebuf(stdout);
- lp_load_with_registry_shares(get_dyn_CONFIGFILE(), False, False, True);
+ lp_load_with_registry_shares(get_dyn_CONFIGFILE(), False, True);
/* check for initializing secrets.tdb first */
fprintf(stderr,"Load smb config files from %s\n",config_file);
- if (!lp_load_with_registry_shares(config_file, True, False, True)) {
+ if (!lp_load_with_registry_shares(config_file, True, True)) {
fprintf(stderr,"Error loading services.\n");
ret = 1;
goto done;