diff options
author | Hans Nilsson <[email protected]> | 2018-11-08 12:01:29 +0100 |
---|---|---|
committer | Hans Nilsson <[email protected]> | 2018-11-08 12:01:29 +0100 |
commit | 09754191c9becd413653b8062b4b11065c948b22 (patch) | |
tree | 038e2b9c8d2cfbe35379f4d353300a6d21802be5 /lib | |
parent | 505b01e6b57c695dea0e8e02b97f9f3f5b909be6 (diff) | |
parent | 55d97726f4a660c3204b2290f81ac1cc01318aed (diff) | |
download | otp-09754191c9becd413653b8062b4b11065c948b22.tar.gz otp-09754191c9becd413653b8062b4b11065c948b22.tar.bz2 otp-09754191c9becd413653b8062b4b11065c948b22.zip |
Merge branch 'maint'
* maint:
ssh: Fix doc error in daemon 'exec' option
Diffstat (limited to 'lib')
-rw-r--r-- | lib/ssh/doc/src/ssh.xml | 11 | ||||
-rw-r--r-- | lib/ssh/src/ssh.hrl | 5 |
2 files changed, 14 insertions, 2 deletions
diff --git a/lib/ssh/doc/src/ssh.xml b/lib/ssh/doc/src/ssh.xml index 93e52ce023..9bfe7f5e9b 100644 --- a/lib/ssh/doc/src/ssh.xml +++ b/lib/ssh/doc/src/ssh.xml @@ -397,9 +397,20 @@ <datatype> <name name="exec_daemon_option"/> + <name name="exec_spec"/> + <desc/> + </datatype> + <datatype> + <name name="exec_fun"/> + <desc/> + </datatype> + <datatype> <name name="'exec_fun/1'"/> <name name="'exec_fun/2'"/> <name name="'exec_fun/3'"/> + <desc/> + </datatype> + <datatype> <name name="exec_result"/> <desc> <p>This option changes how the daemon execute exec-requests from clients. The term in the return value diff --git a/lib/ssh/src/ssh.hrl b/lib/ssh/src/ssh.hrl index 3ac74c4925..233f3caa5d 100644 --- a/lib/ssh/src/ssh.hrl +++ b/lib/ssh/src/ssh.hrl @@ -293,8 +293,9 @@ -type 'shell_fun/1'() :: fun((User::string()) -> pid()) . -type 'shell_fun/2'() :: fun((User::string(), PeerAddr::inet:ip_address()) -> pid()). --type exec_daemon_option() :: {exec, 'exec_fun/1'() | 'exec_fun/2'() | 'exec_fun/3'() }. - +-type exec_daemon_option() :: {exec, exec_spec()} . +-type exec_spec() :: {direct, exec_fun()} . +-type exec_fun() :: 'exec_fun/1'() | 'exec_fun/2'() | 'exec_fun/3'(). -type 'exec_fun/1'() :: fun((Cmd::string()) -> exec_result()) . -type 'exec_fun/2'() :: fun((Cmd::string(), User::string()) -> exec_result()) . -type 'exec_fun/3'() :: fun((Cmd::string(), User::string(), ClientAddr::ip_port()) -> exec_result()) . |