aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorFredrik Gustafsson <[email protected]>2012-09-14 14:20:56 +0200
committerFredrik Gustafsson <[email protected]>2012-11-05 15:48:09 +0100
commit062d36c77ef77f58366e4f3c77ef4cb34f097c63 (patch)
tree865e3661ddc9d7a3942b1ca7c070f9b1fb38afaf /lib
parentacdfec8baf27093b59cd25ffbc84e6165f9bb427 (diff)
downloadotp-062d36c77ef77f58366e4f3c77ef4cb34f097c63.tar.gz
otp-062d36c77ef77f58366e4f3c77ef4cb34f097c63.tar.bz2
otp-062d36c77ef77f58366e4f3c77ef4cb34f097c63.zip
SSH quiet mode
Diffstat (limited to 'lib')
-rw-r--r--lib/ssh/src/ssh.erl5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/ssh/src/ssh.erl b/lib/ssh/src/ssh.erl
index 66d1d024ed..d09f6cf34b 100644
--- a/lib/ssh/src/ssh.erl
+++ b/lib/ssh/src/ssh.erl
@@ -344,6 +344,8 @@ handle_option([{auth_methods, _} = Opt | Rest], SocketOptions, SshOptions) ->
handle_option(Rest, SocketOptions, [handle_ssh_option(Opt) | SshOptions]);
handle_option([{pref_public_key_algs, _} = Opt | Rest], SocketOptions, SshOptions) ->
handle_option(Rest, SocketOptions, [handle_ssh_option(Opt) | SshOptions]);
+handle_option([{quiet_mode, _} = 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).
@@ -416,6 +418,9 @@ handle_ssh_option({shell, {Module, Function, _}} = Opt) when is_atom(Module),
Opt;
handle_ssh_option({shell, Value} = Opt) when is_function(Value) ->
Opt;
+handle_ssh_option({quiet_mode, Value} = Opt) when Value == true;
+ Value == false ->
+ Opt;
handle_ssh_option(Opt) ->
throw({error, {eoptions, Opt}}).