aboutsummaryrefslogtreecommitdiffstats
path: root/lib/inets/src/ftp/ftp_response.erl
diff options
context:
space:
mode:
authorFredrik Gustafsson <[email protected]>2013-02-22 15:30:29 +0100
committerFredrik Gustafsson <[email protected]>2013-02-22 15:30:29 +0100
commit17231ca24cbf3b136301f1076bb94247344e9f35 (patch)
tree5ef0821c9294e8fbd40dab188980f5b8393116d3 /lib/inets/src/ftp/ftp_response.erl
parentf1d328bdbc58e2ad0325c11edb3bfa0db50b84c3 (diff)
parentba1902911b675e1edf2e941a4df327f6e312b364 (diff)
downloadotp-17231ca24cbf3b136301f1076bb94247344e9f35.tar.gz
otp-17231ca24cbf3b136301f1076bb94247344e9f35.tar.bz2
otp-17231ca24cbf3b136301f1076bb94247344e9f35.zip
Merge branch 'sal/ftp/OTP-10886'
* sal/ftp/OTP-10886: Changed to correct errorcode in testcase Handle correctly the "No files found or file unavailable" error code.
Diffstat (limited to 'lib/inets/src/ftp/ftp_response.erl')
-rw-r--r--lib/inets/src/ftp/ftp_response.erl3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/inets/src/ftp/ftp_response.erl b/lib/inets/src/ftp/ftp_response.erl
index faeacb31ab..364f534737 100644
--- a/lib/inets/src/ftp/ftp_response.erl
+++ b/lib/inets/src/ftp/ftp_response.erl
@@ -162,6 +162,7 @@ error_string(epath) -> "No such file or directory, already exists, "
error_string(etype) -> "No such type.";
error_string(euser) -> "User name or password not valid.";
error_string(etnospc) -> "Insufficient storage space in system.";
+error_string(enofile) -> "No files found or file unavailable";
error_string(epnospc) -> "Exceeded storage allocation "
"(for current directory or dataset).";
error_string(efnamena) -> "File name not allowed.";
@@ -180,6 +181,8 @@ interpret_status(?POS_COMPL,_,_) -> pos_compl;
interpret_status(?POS_INTERM,?AUTH_ACC,2) -> pos_interm_acct;
%% Positive Intermediate Reply
interpret_status(?POS_INTERM,_,_) -> pos_interm;
+%% No files found or file not available
+interpret_status(?TRANS_NEG_COMPL,?FILE_SYSTEM,0) -> enofile;
%% No storage area no action taken
interpret_status(?TRANS_NEG_COMPL,?FILE_SYSTEM,2) -> etnospc;
%% Temporary Error, no action taken