]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3: smbd: In dfs_path_lookup(). If we have a DFS path including a @GMT-token, don...
authorJeremy Allison <jra@samba.org>
Sat, 4 Dec 2021 00:00:26 +0000 (16:00 -0800)
committerRalph Boehme <slow@samba.org>
Sat, 11 Dec 2021 07:17:28 +0000 (07:17 +0000)
Not yet used.

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/smbd/msdfs.c

index fd002e98071ec0b892b119a6e4f2d6fe1927958a..86ca79a994b3dd0aa25606ab68893d6f5c712b3b 100644 (file)
@@ -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);