diff options
author | Günther Deschner <gd@samba.org> | 2008-03-06 00:51:20 +0100 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2008-03-06 09:52:06 +0100 |
commit | d9f4060c660da0ad671e061b123df71d109d51b9 (patch) | |
tree | 1a6c54ec4596870ae9fc8426fbdd39e169dd47d8 /source/param | |
parent | be673bfc61559f661040c6fb1ba7d2e4552967f2 (diff) | |
download | samba-d9f4060c660da0ad671e061b123df71d109d51b9.tar.gz samba-d9f4060c660da0ad671e061b123df71d109d51b9.tar.xz samba-d9f4060c660da0ad671e061b123df71d109d51b9.zip |
Fix lp_load with an empty registry and "config backend = registry". Michael, please check.
Guenther
Diffstat (limited to 'source/param')
-rw-r--r-- | source/param/loadparm.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/source/param/loadparm.c b/source/param/loadparm.c index 5651a435de1..25aa48b61b0 100644 --- a/source/param/loadparm.c +++ b/source/param/loadparm.c @@ -3404,6 +3404,13 @@ static bool process_registry_globals(bool (*pfunc)(const char *, const char *)) } } + if (!libnet_conf_share_exists(conf_ctx, GLOBAL_NAME)) { + /* nothing to read from the registry yet but make sure lp_load + * doesn't return false */ + ret = true; + goto done; + } + werr = libnet_conf_get_share(mem_ctx, conf_ctx, GLOBAL_NAME, &num_params, ¶m_names, ¶m_values); if (!W_ERROR_IS_OK(werr)) { |