git » kxd » commit dfb48c3

Fix typos caught by codespell

author Alberto Bertogli
2025-01-13 01:18:33 UTC
committer Alberto Bertogli
2025-01-13 01:30:43 UTC
parent 527095fc267544083047a30da9d9994caa73d73f

Fix typos caught by codespell

kxd/hook.go +1 -1
kxd/key_config.go +1 -1
scripts/init.d/kxd +1 -1
tests/run_tests +1 -1

diff --git a/kxd/hook.go b/kxd/hook.go
index 61be704..94e36bc 100644
--- a/kxd/hook.go
+++ b/kxd/hook.go
@@ -34,7 +34,7 @@ func RunHook(kc *KeyConfig, req *Request, chains [][]*x509.Certificate) error {
 	cmd.Dir = *dataDir
 
 	// Prepare the environment, copying some common variables so the hook has
-	// someting reasonable, and then setting the specific ones for this case.
+	// something reasonable, and then setting the specific ones for this case.
 	for _, v := range strings.Fields("USER PWD SHELL PATH") {
 		cmd.Env = append(cmd.Env, v+"="+os.Getenv(v))
 	}
diff --git a/kxd/key_config.go b/kxd/key_config.go
index 3b96dbb..f086eaf 100644
--- a/kxd/key_config.go
+++ b/kxd/key_config.go
@@ -107,7 +107,7 @@ func (kc *KeyConfig) LoadAllowedHosts() error {
 
 	// If the file is there, we want our array to exist, even if it's
 	// empty, to avoid authorizing everyone on an empty file (which means
-	// authorize noone).
+	// authorize no one).
 	kc.allowedHosts = make([]string, 1)
 	for _, line := range strings.Split(string(contents), "\n") {
 		line = strings.TrimSpace(line)
diff --git a/scripts/init.d/kxd b/scripts/init.d/kxd
index 0b5b031..8339d19 100755
--- a/scripts/init.d/kxd
+++ b/scripts/init.d/kxd
@@ -13,7 +13,7 @@
 DAEMON=/usr/bin/kxd
 DEFAULTS_FILE=/etc/default/kxd
 
-# These variables can be overriden in the defaults file.
+# These variables can be overridden in the defaults file.
 DISABLE=
 OPTS=''
 PID_FILE=/var/run/kxd.pid
diff --git a/tests/run_tests b/tests/run_tests
index 5e0e3b2..5b05e81 100755
--- a/tests/run_tests
+++ b/tests/run_tests
@@ -303,7 +303,7 @@ class TestCase(unittest.TestCase):
 
 
 class Simple(TestCase):
-    """Simple test cases for common (mis)configurations."""
+    """Simple test cases for common configurations and errors."""
 
     def test_simple(self):
         # There's no need to split these up; by doing all these within a