diff options
author | serge <[email protected]> | 2012-10-11 23:53:55 -0400 |
---|---|---|
committer | serge <[email protected]> | 2012-10-11 23:53:55 -0400 |
commit | 6d250593da684c07edffaa1d6c17d511d9172302 (patch) | |
tree | f0971e73e8e209392825a1596ab4e0128cb8019f /lib/inets/src/ftp/ftp.erl | |
parent | ab151d0adebc31fbb74adffa69e4524f69dc8b62 (diff) | |
download | otp-6d250593da684c07edffaa1d6c17d511d9172302.tar.gz otp-6d250593da684c07edffaa1d6c17d511d9172302.tar.bz2 otp-6d250593da684c07edffaa1d6c17d511d9172302.zip |
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.erl | 4 |
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 |