bool lp_load_global_no_reinit(const char *file_name);
bool lp_load_no_reinit(const char *file_name);
bool lp_load_client_no_reinit(const char *file_name);
-bool lp_load_with_registry_shares(const char *pszFname,
- bool save_defaults);
+bool lp_load_with_registry_shares(const char *pszFname);
int lp_numservices(void);
void lp_dump(FILE *f, bool show_defaults, int maxtoprint);
void lp_dump_one(FILE * f, bool show_defaults, int snum);
return lp_load_global_no_reinit(file_name);
}
-bool lp_load_with_registry_shares(const char *pszFname,
- bool save_defaults)
+bool lp_load_with_registry_shares(const char *pszFname)
{
return lp_load_ex(pszFname,
false, /* global_only */
- save_defaults,
+ true, /* save_defaults */
false, /* add_ipc */
false, /* reinit_globals */
true, /* allow_include_registry */
for (i=0; i < count; i++) {
printf("call lp_load() #%d: ", i+1);
- if (!lp_load_with_registry_shares(config_file,
- True)) /* save defaults */
- {
+ if (!lp_load_with_registry_shares(config_file)) {
printf("ERROR.\n");
ret = 1;
goto done;
setlinebuf(stdout);
- lp_load_with_registry_shares(get_dyn_CONFIGFILE(), False);
+ lp_load_with_registry_shares(get_dyn_CONFIGFILE());
/* 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)) {
+ if (!lp_load_with_registry_shares(config_file)) {
fprintf(stderr,"Error loading services.\n");
ret = 1;
goto done;