Changeset 733 for branches/samba-3.5.x/source3/param
- Timestamp:
- Nov 12, 2012, 5:09:31 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/samba-3.5.x/source3/param/loadparm.c
r732 r733 7104 7104 } 7105 7105 7106 /** 7107 * reload those shares from registry that are already 7108 * activated in the services array. 7109 */ 7110 static 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 7130 done: 7131 return ret; 7132 } 7133 7134 7106 7135 #define MAX_INCLUDE_DEPTH 100 7107 7136 … … 9292 9321 } 9293 9322 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 } 9296 9329 } 9297 9330
Note:
See TracChangeset
for help on using the changeset viewer.