loadparm: fix process_registry_shares() when there is only [global] in registry. obnox/v3-2-ctdb
authorMichael Adam <obnox@samba.org>
Tue, 27 May 2008 08:59:11 +0000 (10:59 +0200)
committerMichael Adam <obnox@samba.org>
Wed, 28 May 2008 08:24:59 +0000 (10:24 +0200)
This fixes testparm printing "Error loading services." when there is only
the global section in registry and no other service definition.

Michael

source/param/loadparm.c

index c2722748377cff8ce12121fca8beb8c272c34de8..a5623a25c02cce1754830135a3ff7c02c1d3b595 100644 (file)
@@ -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;