mirror of
https://github.com/samba-team/samba.git
synced 2024-12-24 21:34:56 +03:00
s3:smbd: use lp_smbd_search_ask_sharemode()
Parametric options have a performance impact, use the normal options added in the previous commit. Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
ea36967c04
commit
ea41bf46d8
@ -506,8 +506,7 @@ static struct tevent_req *smbd_smb2_query_directory_send(TALLOC_CTX *mem_ctx,
|
||||
* handling in future.
|
||||
*/
|
||||
if (state->info_level != SMB_FIND_FILE_NAMES_INFO) {
|
||||
state->ask_sharemode = lp_parm_bool(
|
||||
SNUM(conn), "smbd", "search ask sharemode", true);
|
||||
state->ask_sharemode = lp_smbd_search_ask_sharemode(SNUM(conn));
|
||||
|
||||
state->async_dosmode = lp_parm_bool(
|
||||
SNUM(conn), "smbd", "async dosmode", false);
|
||||
|
Loading…
Reference in New Issue
Block a user