]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3: smbd: In smb2_file_link_information(), don't ever expect @GMT tokens in the pathname.
authorJeremy Allison <jra@samba.org>
Mon, 27 Mar 2023 18:14:59 +0000 (11:14 -0700)
committerRalph Boehme <slow@samba.org>
Fri, 31 Mar 2023 05:12:32 +0000 (05:12 +0000)
They're an SMB1 thing, not an SMB2 thing. It will always be (and always was) zero.

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

index 24c21bc16f92a58130ec3a98e47c3a5a612ad23b..0155a5a2fbaab2214d7f490dea5517b233718a39 100644 (file)
@@ -4518,7 +4518,6 @@ static NTSTATUS smb2_file_link_information(connection_struct *conn,
        struct smb_filename *smb_fname_dst = NULL;
        NTSTATUS status = NT_STATUS_OK;
        uint32_t ucf_flags = ucf_flags_from_smb_request(req);
-       NTTIME dst_twrp = 0;
        TALLOC_CTX *ctx = talloc_tos();
 
        if (!fsp) {
@@ -4562,14 +4561,11 @@ static NTSTATUS smb2_file_link_information(connection_struct *conn,
 
        DBG_DEBUG("got name |%s|\n", newname);
 
-       if (ucf_flags & UCF_GMT_PATHNAME) {
-               extract_snapshot_token(newname, &dst_twrp);
-       }
        status = filename_convert_dirfsp(ctx,
                                         conn,
                                         newname,
                                         ucf_flags,
-                                        dst_twrp,
+                                        0, /* No TWRP. */
                                         &dst_dirfsp,
                                         &smb_fname_dst);
        if (!NT_STATUS_IS_OK(status)) {