Cassondra Foesch
d1903fbd46
rework client to prevent after-close usage, and support perm at open
2024-01-19 00:20:23 +00:00
Cassondra Foesch
ba854bee45
collect all marshal/unmarshal functions into packet.go
2021-08-11 11:12:34 +00:00
greatroar
053574d9eb
Fix panic when connection dropped in the middle of the sid
2021-03-15 18:01:38 +01:00
Nicola Murino
25e9e632b3
client: add a test case for init packet too short
2021-03-11 19:56:45 +01:00
greatroar
cb1556337d
Don't crash when the packet length is zero
2020-11-02 17:07:10 +01:00
Eran Sandler
77a4076c35
fixes based on comments + minor test added
2020-01-06 14:54:28 -08:00
Nicola Murino
b4ea0fd6f6
fix lint issues
...
These lint issues remain:
- request-errors.go, aliases for new error types
- request-attrs.go, UidGid. Changing this will break compatibility
2019-08-30 17:04:37 +02:00
Cody Jones
f8a9ce48ad
Allow the use of packets smaller than 32768 bytes, and add MaxPacketChecked/Unchecked client options to prevent developers from accidentally using larger, potentially incompatible sizes.
2018-02-22 14:05:13 -08:00
Andrew Kupasrimonkol
59640f4fcc
Make SSH_FXP_STATUS "message" field optional.
...
Cisco SSH 2.0 server doesn't fill out the "message" field,
even though it returns valid status codes. This makes
File.Read method error out without actually reading the
file due to unmarshalStatus returning a "packet too short"
error.
2017-02-05 14:53:51 -08:00
akupas
f4e06643a3
Make SSH_FXP_STATUS error message optional ( #109 )
...
Some SSH implementations do not include an error message in the
SSH_FXP_STATUS response causing an "index out of range" panic.
2016-06-14 12:24:38 +10:00
Matt Layher
3fa7dab0f1
client: add normaliseError, make Client.{Lstat,Open,Stat} satisfy os.IsNotExist
2016-01-03 16:10:58 -05:00
Philip Linde
57048f3cf4
add test for status messages with no language tag
...
Serialize and truncate a status message to exclude the language
tag, reporting a panic in doing so as a failure.
2015-10-31 01:06:26 +01:00
Dave Cheney
4d6ea4f122
Added OpenFile support
...
Close #3
2013-11-14 15:32:21 +11:00
Dave Cheney
31b82445b2
Switched back to kr/fs
2013-11-11 12:57:03 +11:00
Dave Cheney
046ffa9135
Assert that *Client is a fs.FileSystem
2013-11-07 17:43:06 +11:00
Dave Cheney
2a93daf2d0
made all constants private
2013-11-06 19:10:28 +11:00
Dave Cheney
0a125fe805
added tests for ok/eof helpers
2013-11-06 15:00:04 +11:00