lib/sshv2.c: SSH_FX_NO_SUCH_PATH:
@@ -120,6 +120,7 @@ typedef struct sshv2_params_tag
#define SSH_FXF_EXCL 0x00000020
/* responses from the server to the client */
+// https://tools.ietf.org/html/draft-ietf-secsh-filexfer-03#section-7
#define SSH_FX_OK 0
#define SSH_FX_EOF 1
#define SSH_FX_NO_SUCH_FILE 2
@@ -130,6 +131,7 @@ typedef struct sshv2_params_tag
#define SSH_FX_CONNECTION_LOST 7
#define SSH_FX_OP_UNSUPPORTED 8
#define SSH_FX_INVALID_HANDLE 9
+#define SSH_FX_NO_SUCH_PATH 10
#define SSH_LOGIN_BUFSIZE 200
#define SSH_ERROR_BADPASS -1
@@ -716,6 +718,9 @@ sshv2_log_command (gftp_request * request, gftp_logging_level level,
case SSH_FX_INVALID_HANDLE:
descr = _("Invalid file handle");
break;
+ case SSH_FX_NO_SUCH_PATH:
+ descr = _("The file path does not exist or is invalid.");
+ break;
default:
descr = _("Unknown message returned from server");
break;
@@ -950,6 +955,7 @@ sshv2_response_return_code (gftp_request * request, sshv2_message * message,
case SSH_FX_FAILURE:
case SSH_FX_NO_SUCH_FILE:
case SSH_FX_INVALID_HANDLE:
+ case SSH_FX_NO_SUCH_PATH:
case SSH_FX_PERMISSION_DENIED:
return (GFTP_ECANIGNORE);
default:
