aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ssh/src/ssh_options.erl
diff options
context:
space:
mode:
authorHans Nilsson <[email protected]>2018-01-17 12:22:02 +0100
committerHans Nilsson <[email protected]>2018-02-27 14:50:33 +0100
commit2c525a02f087fff609cc6c7736c5c582f91e00dc (patch)
tree98c92a23f013d9ff0de020857b6d46bd33e85550 /lib/ssh/src/ssh_options.erl
parent08d195064063e470d9414586bb43ed3e09fa1624 (diff)
downloadotp-2c525a02f087fff609cc6c7736c5c582f91e00dc.tar.gz
otp-2c525a02f087fff609cc6c7736c5c582f91e00dc.tar.bz2
otp-2c525a02f087fff609cc6c7736c5c582f91e00dc.zip
ssh: Disable exec for non-default shell
Diffstat (limited to 'lib/ssh/src/ssh_options.erl')
-rw-r--r--lib/ssh/src/ssh_options.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ssh/src/ssh_options.erl b/lib/ssh/src/ssh_options.erl
index cf1534bd78..1e10f72956 100644
--- a/lib/ssh/src/ssh_options.erl
+++ b/lib/ssh/src/ssh_options.erl
@@ -268,7 +268,7 @@ default(server) ->
},
{shell, def} =>
- #{default => {shell, start, []},
+ #{default => ?DEFAULT_SHELL,
chk => fun({M,F,A}) -> is_atom(M) andalso is_atom(F) andalso is_list(A);
(V) -> check_function1(V) orelse check_function2(V)
end,