}
rpd(ctx)->open = false;
- if (!registry_init_smbconf(path)) {
- werr = WERR_REG_IO_FAILURE;
+ werr = registry_init_smbconf(path);
+ if (!W_ERROR_IS_OK(werr)) {
goto done;
}
* for use in places where not the whole registry is needed,
* e.g. utils/net_conf.c and loadparm.c
*/
-bool registry_init_smbconf(const char *keyname)
+WERROR 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 ret;
+ return werr;
}