Commit Graph

9 Commits

Author SHA1 Message Date
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