mirror of
https://github.com/samba-team/samba.git
synced 2025-01-13 13:18:06 +03:00
s3:loadparm: add reload_registry_shares() - reload only those shares already loaded
This commit is contained in:
parent
2b4bb9b7a1
commit
ec113a58a4
@ -6743,6 +6743,35 @@ done:
|
||||
return ret;
|
||||
}
|
||||
|
||||
/**
|
||||
* reload those shares from registry that are already
|
||||
* activated in the services array.
|
||||
*/
|
||||
static bool reload_registry_shares(void)
|
||||
{
|
||||
int i;
|
||||
bool ret = true;
|
||||
|
||||
for (i = 0; i < iNumServices; i++) {
|
||||
if (!VALID(i)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (ServicePtrs[i]->usershare == USERSHARE_VALID) {
|
||||
continue;
|
||||
}
|
||||
|
||||
ret = process_registry_service(ServicePtrs[i]->szService);
|
||||
if (!ret) {
|
||||
goto done;
|
||||
}
|
||||
}
|
||||
|
||||
done:
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
||||
#define MAX_INCLUDE_DEPTH 100
|
||||
|
||||
static uint8_t include_depth;
|
||||
|
Loading…
Reference in New Issue
Block a user