From: Jeremy Allison Date: Tue, 12 Jan 2021 19:44:44 +0000 (-0800) Subject: s3: smbd: Add call to conn_setup_case_options() to create_conn_struct_as_root(). X-Git-Tag: samba-4.14.0rc1~90 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=39ce73321093a0a5e25f574d0d32d7f88892de46;p=thirdparty%2Fsamba.git s3: smbd: Add call to conn_setup_case_options() to create_conn_struct_as_root(). Ensures temporary DFS share doesn't leave the case parameters set as zero (i.e.: conn->case sensitive = 0 conn->share_case_preserve = 0 and default case is lower which can cause problems doing a DFS_GET_REFERRALS request). BUG: https://bugzilla.samba.org/show_bug.cgi?id=14612 Signed-off-by: Jeremy Allison Reviewed-by: Anoop C S Autobuild-User(master): Anoop C S Autobuild-Date(master): Wed Jan 13 18:14:31 UTC 2021 on sn-devel-184 --- diff --git a/source3/smbd/msdfs.c b/source3/smbd/msdfs.c index 7b5ea251501..dc07727f007 100644 --- a/source3/smbd/msdfs.c +++ b/source3/smbd/msdfs.c @@ -317,6 +317,8 @@ static NTSTATUS create_conn_struct_as_root(TALLOC_CTX *ctx, vfs_user = get_current_username(); } + conn_setup_case_options(conn); + set_conn_connectpath(conn, connpath); /*