From 182c7b954620e9287ba2ddce9b1cbaceb1bddbaf Mon Sep 17 00:00:00 2001
From: Hans Nilsson
Date: Thu, 21 Jun 2018 10:38:51 +0200
Subject: ssh: Bug fix sftp error codes
Report the signal name if the signal error message is ""
Do not report a return code of 0 as an error.
---
lib/ssh/doc/src/ssh_sftp.xml | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
(limited to 'lib/ssh/doc')
diff --git a/lib/ssh/doc/src/ssh_sftp.xml b/lib/ssh/doc/src/ssh_sftp.xml
index 129426a6d5..f367560b5f 100644
--- a/lib/ssh/doc/src/ssh_sftp.xml
+++ b/lib/ssh/doc/src/ssh_sftp.xml
@@ -46,9 +46,9 @@
reason()
-
-
= atom() A description of the reason why an operation failed.
+ = atom() | string() | tuple() A description of the reason why an operation failed.
- The value is formed from the sftp error codes in the protocol-level responses as defined in
+ The atom() value is formed from the sftp error codes in the protocol-level responses as defined in
draft-ietf-secsh-filexfer-13.txt
section 9.1.
@@ -57,6 +57,10 @@
E.g. the error code SSH_FX_NO_SUCH_FILE
will cause the reason() to be no_such_file.
+ The string() reason is the error information from the server in case of an exit-signal. If that information is empty, the reason is the exit signal name.
+
+ The tuple() reason are other errors like the {exit_status,integer()} if the exit status is not 0.
+
ssh_connection_ref() =
--
cgit v1.2.3
From 60c76a2cae65a7d138825adc192e4a20a85e8a73 Mon Sep 17 00:00:00 2001
From: Erlang/OTP
Date: Thu, 21 Jun 2018 17:33:18 +0200
Subject: Prepare release
---
lib/ssh/doc/src/notes.xml | 29 +++++++++++++++++++++++++++++
1 file changed, 29 insertions(+)
(limited to 'lib/ssh/doc')
diff --git a/lib/ssh/doc/src/notes.xml b/lib/ssh/doc/src/notes.xml
index ce01a04112..12470df7b9 100644
--- a/lib/ssh/doc/src/notes.xml
+++ b/lib/ssh/doc/src/notes.xml
@@ -30,6 +30,35 @@
notes.xml
+Ssh 4.6.9.1
+
+ Fixed Bugs and Malfunctions
+
+ -
+
+ SFTP clients reported the error reason "" if a
+ non-OTP sftp server was killed during a long file
+ transmission.
+
+ Now the signal name (for example "KILL") will be
+ the error reason if the server's reason is empty.
+
+ The documentation also lacked type information about this
+ class of errors.
+
+ Own Id: OTP-15148 Aux Id: ERIERL-194
+
+ -
+
+ Fix ssh_sftp decode error for sftp protocol version 4
+
+ Own Id: OTP-15149 Aux Id: ERIERL-199
+
+
+
+
+
+
Ssh 4.6.9
Fixed Bugs and Malfunctions
--
cgit v1.2.3