aboutsummaryrefslogtreecommitdiffstats
path: root/lib/inets/src/ftp/ftp.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.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.erl')
-rw-r--r--lib/inets/src/ftp/ftp.erl4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/inets/src/ftp/ftp.erl b/lib/inets/src/ftp/ftp.erl
index fe25c23316..132a384a49 100644
--- a/lib/inets/src/ftp/ftp.erl
+++ b/lib/inets/src/ftp/ftp.erl
@@ -1899,6 +1899,10 @@ ctrl_result_response(pos_compl, #state{client = From} = State, _) ->
gen_server:reply(From, ok),
{noreply, State#state{client = undefined, caller = undefined}};
+ctrl_result_response(enofile, #state{client = From} = State, _) ->
+ gen_server:reply(From, {error, enofile}),
+ {noreply, State#state{client = undefined, caller = undefined}};
+
ctrl_result_response(Status, #state{client = From} = State, _)
when (Status =:= etnospc) orelse
(Status =:= epnospc) orelse