Ignore:
Timestamp:
Nov 12, 2012, 5:09:31 PM (13 years ago)
Author:
Silvan Scherrer
Message:

Samba Server 3.5: update branche to 3.5.13

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/samba-3.5.x/source3/param/loadparm.c

    r732 r733  
    71047104}
    71057105
     7106/**
     7107 * reload those shares from registry that are already
     7108 * activated in the services array.
     7109 */
     7110static bool reload_registry_shares(void)
     7111{
     7112        int i;
     7113        bool ret = true;
     7114
     7115        for (i = 0; i < iNumServices; i++) {
     7116                if (!VALID(i)) {
     7117                        continue;
     7118                }
     7119
     7120                if (ServicePtrs[i]->usershare == USERSHARE_VALID) {
     7121                        continue;
     7122                }
     7123
     7124                ret = process_registry_service(ServicePtrs[i]->szService);
     7125                if (!ret) {
     7126                        goto done;
     7127                }
     7128        }
     7129
     7130done:
     7131        return ret;
     7132}
     7133
     7134
    71067135#define MAX_INCLUDE_DEPTH 100
    71077136
     
    92929321        }
    92939322
    9294         if (bRetval && lp_registry_shares() && allow_registry_shares) {
    9295                 bRetval = process_registry_shares();
     9323        if (bRetval && lp_registry_shares()) {
     9324                if (allow_registry_shares) {
     9325                        bRetval = process_registry_shares();
     9326                } else {
     9327                        bRetval = reload_registry_shares();
     9328                }
    92969329        }
    92979330
Note: See TracChangeset for help on using the changeset viewer.