diff --git a/CHANGELOG.md b/CHANGELOG.md index 8872cd58d212c0a7da12b3d73c506449402143fe..cf7b950e618521b98231d8b0617fb225afc5139c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 1.8.3 - TBD + +* Set `additional_information` field in `SMB2SetInfoRequest` to a flags field rather than a single enum as per protocol docs + + ## 1.8.2 - 2021-11-03 * Add missing `FileAttributes` enum values diff --git a/smbprotocol/open.py b/smbprotocol/open.py index f4571efe38e51436d51ea747d6212e73c5390124..afe1d55177c96b0178e5e89e0a275f65f70c8ccc 100644 --- a/smbprotocol/open.py +++ b/smbprotocol/open.py @@ -1037,9 +1037,9 @@ class SMB2SetInfoRequest(Structure): default=96 )), ('reserved', IntField(size=2)), - ('additional_information', EnumField( + ('additional_information', FlagField( size=4, - enum_type=InfoAdditionalInformation, + flag_type=InfoAdditionalInformation, )), ('file_id', BytesField(size=16)), ('buffer', BytesField(