diff options
author | Fredrik Gustafsson <[email protected]> | 2012-11-28 16:26:21 +0100 |
---|---|---|
committer | Fredrik Gustafsson <[email protected]> | 2012-11-28 16:26:21 +0100 |
commit | b5f755bab947c220c6ec434b121ccbc1d0a2476e (patch) | |
tree | 66505704411e1c4cc7eab21e5d74115f854c72fe /lib | |
parent | 5a1f7a4d4d705e302e748c45db9a8fd9fc28eca1 (diff) | |
download | otp-b5f755bab947c220c6ec434b121ccbc1d0a2476e.tar.gz otp-b5f755bab947c220c6ec434b121ccbc1d0a2476e.tar.bz2 otp-b5f755bab947c220c6ec434b121ccbc1d0a2476e.zip |
sftp ver6 mods, SSH_FX_CANNOT_DELETE added as parameter
Diffstat (limited to 'lib')
-rw-r--r-- | lib/ssh/src/ssh_xfer.erl | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/ssh/src/ssh_xfer.erl b/lib/ssh/src/ssh_xfer.erl index e72e2e982f..91607ce69c 100644 --- a/lib/ssh/src/ssh_xfer.erl +++ b/lib/ssh/src/ssh_xfer.erl @@ -384,6 +384,7 @@ decode_status(Status) -> ?SSH_FX_LOCK_CONFlICT -> lock_conflict; ?SSH_FX_NOT_A_DIRECTORY -> not_a_directory; ?SSH_FX_FILE_IS_A_DIRECTORY -> file_is_a_directory; + ?SSH_FX_CANNOT_DELETE -> cannot_delete; _ -> {error,Status} end. @@ -394,6 +395,7 @@ encode_erlang_status(Status) -> enoent -> ?SSH_FX_NO_SUCH_FILE; eacces -> ?SSH_FX_PERMISSION_DENIED; eisdir -> ?SSH_FX_FILE_IS_A_DIRECTORY; + eperm -> ?SSH_FX_CANNOT_DELETE; _ -> ?SSH_FX_FAILURE end. |