}
rpd(ctx)->open = false;
- werr = registry_init_smbconf(path);
- if (!W_ERROR_IS_OK(werr)) {
+ if (!registry_init_smbconf(path)) {
+ werr = WERR_REG_IO_FAILURE;
goto done;
}
* for use in places where not the whole registry is needed,
* e.g. utils/net_conf.c and loadparm.c
*/
-WERROR registry_init_smbconf(const char *keyname)
+bool registry_init_smbconf(const char *keyname)
{
WERROR werr;
+ bool ret = false;
DEBUG(10, ("registry_init_smbconf called\n"));
goto done;
}
+ ret = true;
+
done:
regdb_close();
- return werr;
+ return ret;
}