From 2f446d9e55d6b442a318d8fd27a935e31737675f Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Tue, 27 May 2008 10:59:11 +0200 Subject: 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) --- source3/param/loadparm.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source3/param/loadparm.c') 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; -- cgit