summaryrefslogtreecommitdiff
path: root/source3/param
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2008-05-27 10:59:11 +0200
committerMichael Adam <obnox@samba.org>2008-05-27 11:00:30 +0200
commit2f446d9e55d6b442a318d8fd27a935e31737675f (patch)
tree1cedef80709cf2ad0e7886cf91cc514e403ee590 /source3/param
parentae5135310737499dfe801df48fe554e5ba53a834 (diff)
downloadsamba-2f446d9e55d6b442a318d8fd27a935e31737675f.tar.gz
samba-2f446d9e55d6b442a318d8fd27a935e31737675f.tar.bz2
samba-2f446d9e55d6b442a318d8fd27a935e31737675f.zip
loadparm: fix process_registry_shares() when there is only [global] in registry.
This fixes testparm printing "Error loading services." when there is only the global section in registry and no other service definition. Michael (This used to be commit 28d197220038b9a47af177b88a8587f865e45de5)
Diffstat (limited to 'source3/param')
-rw-r--r--source3/param/loadparm.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c
index c272274837..a5623a25c0 100644
--- a/source3/param/loadparm.c
+++ b/source3/param/loadparm.c
@@ -6591,6 +6591,8 @@ static bool process_registry_shares(void)
goto done;
}
+ ret = true;
+
for (count = 0; count < num_shares; count++) {
if (strequal(service[count]->name, GLOBAL_NAME)) {
continue;