File 2525-Fix-typos-in-lib-ssh.patch of Package erlang
From d2d196f54c58769aaf09951b66ec545f681dd7d8 Mon Sep 17 00:00:00 2001
From: "Kian-Meng, Ang" <kianmeng@cpan.org>
Date: Fri, 31 Dec 2021 16:02:28 +0800
Subject: [PATCH] Fix typos in lib/ssh
---
lib/ssh/doc/src/SSH_app.xml | 2 +-
lib/ssh/doc/src/configurations.xml | 2 +-
lib/ssh/doc/src/configure_algos.xml | 16 ++++++------
lib/ssh/doc/src/hardening.xml | 4 +--
lib/ssh/doc/src/notes.xml | 26 +++++++++----------
lib/ssh/doc/src/ssh.xml | 20 +++++++-------
lib/ssh/doc/src/ssh_agent.xml | 2 +-
lib/ssh/doc/src/ssh_client_key_api.xml | 12 ++++-----
lib/ssh/doc/src/ssh_connection.xml | 2 +-
lib/ssh/doc/src/ssh_file.xml | 4 +--
lib/ssh/doc/src/ssh_sftp.xml | 2 +-
lib/ssh/doc/src/terminology.xml | 8 +++---
lib/ssh/doc/src/using_ssh.xml | 2 +-
lib/ssh/src/ssh.erl | 2 +-
lib/ssh/src/ssh_auth.hrl | 2 +-
lib/ssh/src/ssh_client_key_api.erl | 2 +-
lib/ssh/src/ssh_connection.erl | 4 +--
lib/ssh/src/ssh_connection_handler.erl | 14 +++++-----
lib/ssh/src/ssh_daemon_channel.erl | 2 +-
lib/ssh/src/ssh_dbg.erl | 8 +++---
lib/ssh/src/ssh_file.erl | 2 +-
lib/ssh/src/ssh_fsm_userauth_client.erl | 6 ++---
lib/ssh/src/ssh_info.erl | 2 +-
lib/ssh/src/ssh_message.erl | 4 +--
lib/ssh/src/ssh_options.erl | 6 ++---
lib/ssh/src/ssh_server_channel.erl | 2 +-
lib/ssh/src/ssh_server_key_api.erl | 2 +-
lib/ssh/src/ssh_sftp.erl | 10 +++----
lib/ssh/src/ssh_sftpd.erl | 2 +-
lib/ssh/src/ssh_shell.erl | 2 +-
lib/ssh/src/ssh_system_sup.erl | 4 +--
lib/ssh/src/ssh_transport.erl | 4 +--
lib/ssh/src/ssh_transport.hrl | 2 +-
lib/ssh/src/ssh_xfer.hrl | 2 +-
.../property_test/ssh_eqc_client_server.erl | 2 +-
.../property_test/ssh_eqc_encode_decode.erl | 2 +-
lib/ssh/test/ssh_basic_SUITE.erl | 12 ++++-----
lib/ssh/test/ssh_chan_behaviours_SUITE.erl | 4 +--
lib/ssh/test/ssh_compat_SUITE.erl | 10 +++----
lib/ssh/test/ssh_connection_SUITE.erl | 6 ++---
lib/ssh/test/ssh_options_SUITE.erl | 8 +++---
lib/ssh/test/ssh_protocol_SUITE.erl | 10 +++----
lib/ssh/test/ssh_pubkey_SUITE.erl | 4 +--
.../public_key/ssh_rsa_long_comment_pub | 2 +-
.../public_key/ssh_rsa_long_header_pub | 2 +-
lib/ssh/test/ssh_relay.erl | 2 +-
lib/ssh/test/ssh_sftpd_SUITE.erl | 6 ++---
lib/ssh/test/ssh_test_lib.erl | 6 ++---
lib/ssh/test/ssh_to_openssh_SUITE.erl | 2 +-
lib/ssh/test/ssh_trpt_test_lib.erl | 14 +++++-----
lib/ssh/test/ssh_upgrade_SUITE.erl | 2 +-
51 files changed, 140 insertions(+), 140 deletions(-)
diff --git a/lib/ssh/doc/src/ssh.xml b/lib/ssh/doc/src/ssh.xml
index 44188ea34c..b6c84f40b4 100644
--- a/lib/ssh/doc/src/ssh.xml
+++ b/lib/ssh/doc/src/ssh.xml
@@ -1374,7 +1374,7 @@
An 'ip'-option will be discarded if present.</item>
<item>if <c>HostAddress</c> is <c>loopback</c>, the listening address
- is <c>loopback</c> and an loopback address will be choosen by the underlying layers.
+ is <c>loopback</c> and an loopback address will be chosen by the underlying layers.
An 'ip'-option will be discarded if present.</item>
<item>if <c>HostAddress</c> is <c>any</c> and no 'ip'-option is present, the listening address is
diff --git a/lib/ssh/src/ssh_options.erl b/lib/ssh/src/ssh_options.erl
index e06c2ed27c..686fa27b58 100644
--- a/lib/ssh/src/ssh_options.erl
+++ b/lib/ssh/src/ssh_options.erl
@@ -295,7 +295,7 @@ save({Inet,false}, _Defs, OptMap) when Inet==inet ; Inet==inet6 -> OptMap;
save({Inet,true}, Defs, OptMap) when Inet==inet ; Inet==inet6 -> save({inet,Inet}, Defs, OptMap);
save({Inet,false}, _Defs, OptMap) when Inet==inet ; Inet==inet6 -> OptMap;
-%% and finaly the 'real stuff':
+%% and finally the 'real stuff':
save({Key,Value}, Defs, OptMap) when is_map(OptMap) ->
try (check_fun(Key,Defs))(Value)
of
--
2.34.1