NetBSD Problem Report #56473

From jschauma@netmeister.org  Thu Oct 28 20:28:14 2021
Return-Path: <jschauma@netmeister.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id CE96A1A9239
	for <gnats-bugs@gnats.NetBSD.org>; Thu, 28 Oct 2021 20:28:14 +0000 (UTC)
Message-Id: <20211028202811.8209F8586F@panix.netmeister.org>
Date: Thu, 28 Oct 2021 16:28:11 -0400 (EDT)
From: jschauma@netmeister.org
Reply-To: jschauma@netmeister.org
To: gnats-bugs@NetBSD.org
Subject: Typo in lib/libc/net/getaddrinfo.c comment
X-Send-Pr-Version: 3.95

>Number:         56473
>Category:       misc
>Synopsis:       typo in lib/libc/net/getaddrinfo.c comment
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    misc-bug-people
>State:          closed
>Class:          doc-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Oct 28 20:30:00 +0000 2021
>Closed-Date:    Thu Oct 28 21:06:32 +0000 2021
>Last-Modified:  Thu Oct 28 21:06:32 +0000 2021
>Originator:     Jan Schaumann
>Release:        -current
>Organization:

>Environment:
>Description:

lib/libc/net/getaddrinfo.c has a typo in the comment;

"alows" should be "allows"

>How-To-Repeat:

vi /usr/src/lib/libc/net/getaddrinfo.c

>Fix:

--- getaddrinfo.c	2021-10-28 16:26:10.084406991 -0400
+++ getaddrinfo.c.orig	2021-10-28 16:13:10.840494241 -0400
@@ -36,7 +36,7 @@
  *   in the source code.  This is because RFC2553 is silent about which error
  *   code must be returned for which situation.
  * - IPv4 classful (shortened) form.  RFC2553 is silent about it.  XNET 5.2
- *   says to use inet_aton() to convert IPv4 numeric to binary (allows
+ *   says to use inet_aton() to convert IPv4 numeric to binary (alows
  *   classful form as a result).
  *   current code - disallow classful form for IPv4 (due to use of inet_pton).
  * - freeaddrinfo(NULL).  RFC2553 is silent about it.  XNET 5.2 says it is

>Release-Note:

>Audit-Trail:
From: "Taylor R Campbell" <riastradh@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/56473 CVS commit: src/lib/libc/net
Date: Thu, 28 Oct 2021 20:56:32 +0000

 Module Name:	src
 Committed By:	riastradh
 Date:		Thu Oct 28 20:56:32 UTC 2021

 Modified Files:
 	src/lib/libc/net: getaddrinfo.c

 Log Message:
 Fix typo in comment: allows, not alows.

 I don't know what an alow is, maybe some cousin of the alot.
 Awaiting a nature documentary by Allie Brosh about these perhaps more
 elusive beasts.

 PR misc/56473, from jschauma


 To generate a diff of this commit:
 cvs rdiff -u -r1.121 -r1.122 src/lib/libc/net/getaddrinfo.c

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

State-Changed-From-To: open->closed
State-Changed-By: riastradh@NetBSD.org
State-Changed-When: Thu, 28 Oct 2021 21:06:32 +0000
State-Changed-Why:
fixed


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.46 2020/01/03 16:35:01 leot Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2020 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.