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 +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/lib/ruby_smb/smb1/file.rb +5 -0
- data/lib/ruby_smb/version.rb +1 -1
- metadata +2 -2
- metadata.gz.sig +1 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ddd72f55b7cfbe6907e179398762e3ea353e4b4b
|
4
|
+
data.tar.gz: 565f474fa8140500252ac2f9cada13566d8f3566
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4a49da2c17d8eb6384a64932eed74f64365f45c5400c3291b289ec49de946852f276864ab5f5a3b8fc07bfd5a00c966ab076fd356f61f6b2af096eb871ed42a8
|
7
|
+
data.tar.gz: cbd0b9a55074976eaa380125d07592c06640b5139d46da8be55eff603a03304f07f8cb87b9b296d13eae88adabc9f80998491781c93fd7a6083c094aa767ccdf
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/lib/ruby_smb/smb1/file.rb
CHANGED
@@ -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
|
|
data/lib/ruby_smb/version.rb
CHANGED
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.
|
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-
|
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
|
-
|
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
|
+
d4��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�o�0��P���n��c��ߣ*R�3ܧד�ck՞
|