mirror of
https://github.com/samba-team/samba.git
synced 2025-01-29 21:47:30 +03:00
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 <jra@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
This commit is contained in:
parent
14e0dd43d5
commit
a568e92e51
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user