]> git.ipfire.org Git - thirdparty/samba.git/commit
s3: libsmb: Info level SMB2_FIND_ID_BOTH_DIRECTORY_INFO encodes attibutes as a uint32...
authorJeremy Allison <jra@samba.org>
Mon, 1 Jun 2020 20:55:10 +0000 (13:55 -0700)
committerKarolin Seeger <kseeger@samba.org>
Fri, 26 Jun 2020 07:52:26 +0000 (07:52 +0000)
commit10e8d8b4b13a7d1bbd07072a8ebd178ca12b9641
tree888531b3295314092048a2cb9e36ed71700d5671
parent1f8a77fe3aaebb15f3c71e6d3a46e2ef15590b29
s3: libsmb: Info level SMB2_FIND_ID_BOTH_DIRECTORY_INFO encodes attibutes as a uint32, not a uint8.

Fix the SMB2 parsing code.

Cast to a uint16_t for now after pulling the information
as finfo->mode is currently only 16 bits.

We will need this to detect FILE_ATTRIBUTE_REPARSE_POINT in a later commit.

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
(cherry picked from commit 3063e1601ad9e2536651a75a47ebf4921ffddbdc)
source3/libsmb/cli_smb2_fnum.c