ruby_smb 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6ee177148e1551d6f4f431bb4ec5a6af20d289d4
4
- data.tar.gz: 947944d3ccf4f1f032b75a6bd6a1293ed0ae9dc5
3
+ metadata.gz: ddd72f55b7cfbe6907e179398762e3ea353e4b4b
4
+ data.tar.gz: 565f474fa8140500252ac2f9cada13566d8f3566
5
5
  SHA512:
6
- metadata.gz: 679363057437492685efbc69e080d33559759f2514fe10847ffdc02a6fccab9c782363ea61315a3c3b30cc96ed4256b1ccb84a8bba72ac49de35181032e91e90
7
- data.tar.gz: 17224d743364f6d18435fb055d1bd612d78532de7799c02a31b788a1247d3fd9c7119d2e17dbab2680bd44f71b5bce0dca4abaa18462428d8c47f49bef97515a
6
+ metadata.gz: 4a49da2c17d8eb6384a64932eed74f64365f45c5400c3291b289ec49de946852f276864ab5f5a3b8fc07bfd5a00c966ab076fd356f61f6b2af096eb871ed42a8
7
+ data.tar.gz: cbd0b9a55074976eaa380125d07592c06640b5139d46da8be55eff603a03304f07f8cb87b9b296d13eae88adabc9f80998491781c93fd7a6083c094aa767ccdf
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -153,7 +153,12 @@ module RubySMB
153
153
  def send_recv_read(read_length: 0, offset: 0)
154
154
  read_request = read_packet(read_length: read_length, offset: offset)
155
155
  raw_response = tree.client.send_recv(read_request)
156
+
156
157
  response = RubySMB::SMB1::Packet::ReadAndxResponse.read(raw_response)
158
+ unless response.status_code == WindowsError::NTStatus::STATUS_SUCCESS
159
+ raise RubySMB::Error::UnexpectedStatusCode, response.status_code.name
160
+ end
161
+
157
162
  response.data_block.data.to_binary_s
158
163
  end
159
164
 
@@ -1,3 +1,3 @@
1
1
  module RubySMB
2
- VERSION = '1.0.1'.freeze
2
+ VERSION = '1.0.2'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby_smb
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Maloney
@@ -91,7 +91,7 @@ cert_chain:
91
91
  G+Hmcg1v810agasPdoydE0RTVZgEOOMoQ07qu7JFXVWZ9ZQpHT7qJATWL/b2csFG
92
92
  8mVuTXnyJOKRJA==
93
93
  -----END CERTIFICATE-----
94
- date: 2018-06-27 00:00:00.000000000 Z
94
+ date: 2018-06-28 00:00:00.000000000 Z
95
95
  dependencies:
96
96
  - !ruby/object:Gem::Dependency
97
97
  name: redcarpet
metadata.gz.sig CHANGED
@@ -1,2 +1 @@
1
- oh��P��M~q�v'i5�@������w��eh�
2
- W���qQ��!�k8���A�{&��U��^�<�.}.'��V[�h�l��N�����x��S����/= >��('��φ]�3Ҫ���8F:�f�Ij���(�e�9�������|*hXJ��#}"-�`o�er�0Z�y�h}ö��etj~����>',v�ƪ_��p��>~'�3��^M7����C�}�+��!}M��ˆ��J菿i��5���y
1
+ d΋4��4�聴��� �w�:"�y���轐�6�B {���ƪZ�*>ƻ}�rg"6�i�$L/���#LWJ�$�t�T��_7����q�穁��tFr8$��Gn�@Y뎲Mma��aW��X#��?�|��CA��~Hy�>�-ko�!��3Ӌ)I�����%�E���GF�I]EV��cK�#:��D��,�+�N~2���3VIV��[s�o0��P���n��c��ߣ*R3ܧד�ck՞