From: Jeremy Allison Date: Mon, 27 Mar 2023 18:14:59 +0000 (-0700) Subject: s3: smbd: In smb2_file_link_information(), don't ever expect @GMT tokens in the pathname. X-Git-Tag: talloc-2.4.1~1227 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b3fdc892b4fe2fa5e57a5acae32ae87174212edd;p=thirdparty%2Fsamba.git s3: smbd: In smb2_file_link_information(), don't ever expect @GMT tokens in the pathname. They're an SMB1 thing, not an SMB2 thing. It will always be (and always was) zero. Signed-off-by: Jeremy Allison Reviewed-by: Ralph Boehme --- diff --git a/source3/smbd/smb2_trans2.c b/source3/smbd/smb2_trans2.c index 24c21bc16f9..0155a5a2fba 100644 --- a/source3/smbd/smb2_trans2.c +++ b/source3/smbd/smb2_trans2.c @@ -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)) {