aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ssh/src/ssh.erl
diff options
context:
space:
mode:
authorFredrik Gustafsson <[email protected]>2012-11-28 11:48:11 +0100
committerFredrik Gustafsson <[email protected]>2012-11-28 11:48:11 +0100
commit3b697a2e0de3dc02461d811b8714ad91470b9e2c (patch)
treeb8f23ab41954eb8001cb499de20f9c6730a8b856 /lib/ssh/src/ssh.erl
parent3051d7a5833eb8cd4903a5fec749549de27a3c8d (diff)
downloadotp-3b697a2e0de3dc02461d811b8714ad91470b9e2c.tar.gz
otp-3b697a2e0de3dc02461d811b8714ad91470b9e2c.tar.bz2
otp-3b697a2e0de3dc02461d811b8714ad91470b9e2c.zip
changed option to sftpd_vsn
Diffstat (limited to 'lib/ssh/src/ssh.erl')
-rw-r--r--lib/ssh/src/ssh.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ssh/src/ssh.erl b/lib/ssh/src/ssh.erl
index 22c55f8bf0..e089dd20bd 100644
--- a/lib/ssh/src/ssh.erl
+++ b/lib/ssh/src/ssh.erl
@@ -364,7 +364,7 @@ handle_option([{quiet_mode, _} = Opt|Rest], SocketOptions, SshOptions) ->
handle_option(Rest, SocketOptions, [handle_ssh_option(Opt) | SshOptions]);
handle_option([{idle_time, _} = Opt | Rest], SocketOptions, SshOptions) ->
handle_option(Rest, SocketOptions, [handle_ssh_option(Opt) | SshOptions]);
-handle_option([{sftp_vsn, _} = Opt | Rest], SocketOptions, SshOptions) ->
+handle_option([{sftpd_vsn, _} = Opt | Rest], SocketOptions, SshOptions) ->
handle_option(Rest, SocketOptions, [handle_ssh_option(Opt) | SshOptions]);
handle_option([Opt | Rest], SocketOptions, SshOptions) ->
handle_option(Rest, [handle_inet_option(Opt) | SocketOptions], SshOptions).
@@ -442,7 +442,7 @@ handle_ssh_option({quiet_mode, Value} = Opt) when Value == true;
Opt;
handle_ssh_option({idle_time, Value} = Opt) when is_integer(Value), Value > 0 ->
Opt;
-handle_ssh_option({sftp_vsn, Value} = Opt) when is_integer(Value), Value > 0, Value < 7 ->
+handle_ssh_option({sftpd_vsn, Value} = Opt) when is_integer(Value), Value =:= 6 ->
Opt;
handle_ssh_option(Opt) ->
throw({error, {eoptions, Opt}}).