]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
openbsd-compat: reword EAI_NONAME error string
authorLaurent Chardon <laurent.chardon@gmail.com>
Sat, 28 Mar 2026 08:22:54 +0000 (04:22 -0400)
committerDamien Miller <djm@mindrot.org>
Sat, 28 Mar 2026 08:25:47 +0000 (19:25 +1100)
Reword the EAI_NONAME message in fake-rfc2553.c to make it
clearer and grammatically correct.

While there, remove a couple of stray periods from other error
strings to keep the messages consistent.

No functional change.

openbsd-compat/fake-rfc2553.c

index d5a62975aa468a91de9a515520c6ecfb34433aab..5eaa47992b8d985ff59e1eba784123720be7baee 100644 (file)
@@ -94,13 +94,13 @@ gai_strerror(int err)
        case EAI_NODATA:
                return ("no address associated with name");
        case EAI_MEMORY:
-               return ("memory allocation failure.");
+               return ("memory allocation failure");
        case EAI_NONAME:
-               return ("nodename nor servname provided, or not known");
+               return ("name or service is not known");
        case EAI_FAMILY:
                return ("ai_family not supported");
        default:
-               return ("unknown/invalid error.");
+               return ("unknown/invalid error");
        }
 }
 #endif /* !HAVE_GAI_STRERROR */