File 5171-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/configurations.xml b/lib/ssh/doc/src/configurations.xml
index cd55e87027..6123094673 100644
--- a/lib/ssh/doc/src/configurations.xml
+++ b/lib/ssh/doc/src/configurations.xml
@@ -250,7 +250,7 @@ ok
                         ]).
 {ok,&gt;0.118.0>}
 	</code>
-	<p>We check which algoritms are negotiated by the client and the server, and note that
+	<p>We check which algorithms are negotiated by the client and the server, and note that
 	the (only) <c>kex</c> algorithm <c>'curve25519-sha256@libssh.org'</c> was selected:
 	</p>
 	<code>
diff --git a/lib/ssh/doc/src/hardening.xml b/lib/ssh/doc/src/hardening.xml
index c1d3f7669c..2aa8194b8f 100644
--- a/lib/ssh/doc/src/hardening.xml
+++ b/lib/ssh/doc/src/hardening.xml
@@ -64,7 +64,7 @@
       <item>
 	If the client fails to send the first ssh message after a tcp connection setup
 	within this time (in milliseconds), the connection is closed.
-	The default value is 30 seconds. This is actualy a generous time, so it can lowered
+	The default value is 30 seconds. This is actually a generous time, so it can lowered
 	to make the daemon less prone to DoS attacks.
       </item>
       <tag><seealso marker="ssh#type-negotiation_timeout_daemon_option">negotiation_timeout</seealso></tag>
@@ -251,7 +251,7 @@ end.
       <code>
 	ssh:daemon(1234, [{id_string,"hi there"}, ... ]).
       </code>
-      <p>and the deamon will present itself as:</p>
+      <p>and the daemon will present itself as:</p>
       <pre>SSH-2.0-hi there</pre>
       <p>It is possible to replace the string with one randomly generated for each connection attempt.
       See the reference manual for <seealso marker="ssh#type-id_string_common_option">id_string</seealso>.
diff --git a/lib/ssh/doc/src/ssh_agent.xml b/lib/ssh/doc/src/ssh_agent.xml
index a6ff511f2f..ceada72371 100644
--- a/lib/ssh/doc/src/ssh_agent.xml
+++ b/lib/ssh/doc/src/ssh_agent.xml
@@ -52,7 +52,7 @@
     </code>
     <p>
       The agent communication is established through a UNIX domain socket. By default, the socket path
-      will be fetched from the <c>SSH_AUTH_SOCK</c> enviroment variable, which is the default socket path in the agent
+      will be fetched from the <c>SSH_AUTH_SOCK</c> environment variable, which is the default socket path in the agent
       implementation of
       <url href="http://www.openssh.com">OpenSSH</url>.
     </p>
diff --git a/lib/ssh/src/ssh.erl b/lib/ssh/src/ssh.erl
index f655f0db45..320a1992bc 100644
--- a/lib/ssh/src/ssh.erl
+++ b/lib/ssh/src/ssh.erl
@@ -108,7 +108,7 @@ start(Type) ->
         {ok, _} ->
             %% Clear cached default_algorithms (if exists) ...
             ssh_transport:clear_default_algorithms_env(),
-            %% ... and rebuld them taking configure options in account
+            %% ... and rebuild them taking configure options in account
             ssh_transport:default_algorithms(),
             ok;
         Other ->
diff --git a/lib/ssh/src/ssh_dbg.erl b/lib/ssh/src/ssh_dbg.erl
index 54a88a479f..6a21b876da 100644
--- a/lib/ssh/src/ssh_dbg.erl
+++ b/lib/ssh/src/ssh_dbg.erl
@@ -400,7 +400,7 @@ try_all_types_in_all_modules(TypesOn, Arg, WriteFun, Acc0) ->
                                     catch
                                         _:_ ->
                                             %% and finally, signal for special formatting
-                                            %% if noone else formats it
+                                            %% if no one else formats it
                                             Acc
                                     end
                             end
diff --git a/lib/ssh/test/ssh_options_SUITE.erl b/lib/ssh/test/ssh_options_SUITE.erl
index 7543e9f53c..594378cda3 100644
--- a/lib/ssh/test/ssh_options_SUITE.erl
+++ b/lib/ssh/test/ssh_options_SUITE.erl
@@ -1769,7 +1769,7 @@ config_file_modify_algorithms_order(Config) ->
             ConnOptions = proplists:get_value(options, ConnInfo),
             ConnPrefAlgs = proplists:get_value(preferred_algorithms, ConnOptions),
 
-            %% And now, are all levels appied in right order:
+            %% And now, are all levels applied in right order:
             [K3,K2] = proplists:get_value(kex, ConnPrefAlgs),
 
             stop_node_nice(Node)
diff --git a/lib/ssh/test/ssh_pubkey_SUITE.erl b/lib/ssh/test/ssh_pubkey_SUITE.erl
index 81c32e0197..d03d4e61c5 100644
--- a/lib/ssh/test/ssh_pubkey_SUITE.erl
+++ b/lib/ssh/test/ssh_pubkey_SUITE.erl
@@ -836,8 +836,8 @@ chk_known_hosts(Config) ->
 
 
 %%%----------------------------------------------------------------
-try_connect({skip,Reson}) ->
-    {skip,Reson};
+try_connect({skip,Reason}) ->
+    {skip,Reason};
 try_connect(Config) ->
     SystemDir = proplists:get_value(system_dir, Config),
     UserDir = proplists:get_value(user_dir, Config),
-- 
2.34.1

openSUSE Build Service is sponsored by