mirror of
https://github.com/samba-team/samba.git
synced 2025-01-26 10:04:02 +03:00
Always set "registry shares = yes" for "include = registry"
This fixes the case where "include = registry" is set in the smb.conf text file and *only* shares (no [global] settings) are present in the registry. Michael, please check! Thanks, Volker (This used to be commit 6c80362e291d8c5e748b987a583e8e32acc36354)
This commit is contained in:
parent
dcdeab4d4e
commit
2cfacbaacb
@ -6558,6 +6558,11 @@ static bool process_registry_globals(void)
|
||||
goto done;
|
||||
}
|
||||
|
||||
ret = do_parameter("registry shares", "yes", NULL);
|
||||
if (!ret) {
|
||||
goto done;
|
||||
}
|
||||
|
||||
if (!smbconf_share_exists(conf_ctx, GLOBAL_NAME)) {
|
||||
/* nothing to read from the registry yet but make sure lp_load
|
||||
* doesn't return false */
|
||||
@ -6575,7 +6580,6 @@ static bool process_registry_globals(void)
|
||||
goto done;
|
||||
}
|
||||
|
||||
ret = do_parameter("registry shares", "yes", NULL);
|
||||
/* store the csn */
|
||||
smbconf_changed(conf_ctx, &conf_last_csn, NULL, NULL);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user