loadparm: fix process_registry_shares() when there is only [global] in registry.
authorMichael Adam <obnox@samba.org>
Tue, 27 May 2008 08:59:11 +0000 (10:59 +0200)
committerMichael Adam <obnox@samba.org>
Thu, 10 Jul 2008 21:34:05 +0000 (23:34 +0200)
This fixes testparm printing "Error loading services." when there is only
the global section in registry and no other service definition.

Michael
(cherry picked from commit 28d197220038b9a47af177b88a8587f865e45de5)

source/param/loadparm.c

index 45a559f6ff60d61603ef7bfe9fb8e750061b7982..f832f067d5303d2c0349671fe870f887a42de2d5 100644 (file)
@@ -6603,6 +6603,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;