1
0
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:
Ralph Boehme 2018-12-01 00:10:41 +01:00 committed by Jeremy Allison
parent ea36967c04
commit ea41bf46d8

View File

@ -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);