From: Jeremy Allison Date: Sat, 4 Dec 2021 00:00:26 +0000 (-0800) Subject: s3: smbd: In dfs_path_lookup(). If we have a DFS path including a @GMT-token, don... X-Git-Tag: tdb-1.4.6~331 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a568e92e51a7229a3a370daa95f066413ab2b293;p=thirdparty%2Fsamba.git s3: smbd: In dfs_path_lookup(). If we have a DFS path including a @GMT-token, don't throw away the twrp value when parsing the path. Not yet used. Signed-off-by: Jeremy Allison Reviewed-by: Ralph Boehme --- diff --git a/source3/smbd/msdfs.c b/source3/smbd/msdfs.c index fd002e98071..86ca79a994b 100644 --- a/source3/smbd/msdfs.c +++ b/source3/smbd/msdfs.c @@ -697,6 +697,7 @@ static NTSTATUS dfs_path_lookup(TALLOC_CTX *ctx, const struct dfs_path *pdp, /* Parsed out server+share+extrapath. */ uint32_t ucf_flags, + NTTIME *_twrp, int *consumedcntp, struct referral **ppreflist, size_t *preferral_count) @@ -867,6 +868,10 @@ static NTSTATUS dfs_path_lookup(TALLOC_CTX *ctx, } } + if ((ucf_flags & UCF_GMT_PATHNAME) && _twrp != NULL) { + *_twrp = smb_fname->twrp; + } + status = NT_STATUS_OK; out: @@ -965,6 +970,7 @@ NTSTATUS dfs_redirect(TALLOC_CTX *ctx, path_in, pdp, ucf_flags, + NULL, /* twrp. */ NULL, /* int *consumedcntp */ NULL, /* struct referral **ppreflist */ NULL); /* size_t *preferral_count */ @@ -1189,6 +1195,7 @@ NTSTATUS get_referred_path(TALLOC_CTX *ctx, dfs_path, pdp, 0, /* ucf_flags */ + NULL, consumedcntp, &jucn->referral_list, &jucn->referral_count);