git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
be673bf
)
Fix lp_load with an empty registry and "config backend = registry". Michael, please...
author
Günther Deschner
<gd@samba.org>
Wed, 5 Mar 2008 23:51:20 +0000
(
00:51
+0100)
committer
Michael Adam
<obnox@samba.org>
Thu, 6 Mar 2008 08:52:06 +0000
(09:52 +0100)
Guenther
source/param/loadparm.c
patch
|
blob
|
history
diff --git
a/source/param/loadparm.c
b/source/param/loadparm.c
index 5651a435de1af1920cf397aa9ece0c56bbd057b0..25aa48b61b05707073d9195d5e2433d6fe053ddc 100644
(file)
--- 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)) {