Skip to content

Commit 6ae6300

Browse files
committed
Fix a #pack format string for Ruby 3.3
1 parent 90438fd commit 6ae6300

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

spec/lib/ruby_smb/dcerpc/samr/user_properties_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
let(:user_property1) { RubySMB::Dcerpc::Samr::UserProperty.new(property_name: 'key1', property_value: 'value1') }
2424
let(:user_property2) { RubySMB::Dcerpc::Samr::UserProperty.new(property_name: 'key2', property_value: 'value2') }
2525
let(:user_properties) { user_property1.to_binary_s + user_property2.to_binary_s }
26-
let(:binary) { [ 0, 0x63 + 2 + user_properties.length, 0, 0, 0x50, 2].pack('L<L<S<S<x96<S<S') + user_properties + "\x00".b }
26+
let(:binary) { [ 0, 0x63 + 2 + user_properties.length, 0, 0, 0x50, 2].pack('<LLSsx96SS') + user_properties + "\x00".b }
2727
let(:subject) { described_class.read(binary) }
2828

2929
it 'includes the property_count' do
@@ -73,4 +73,4 @@
7373
expect(subject.user_properties).to be_empty
7474
end
7575
end
76-
end
76+
end

0 commit comments

Comments
 (0)