From patchwork Mon Jun 8 15:06:19 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Josef Johansson X-Patchwork-Id: 136691 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from vm01.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 909014B7A1CE for ; Mon, 8 Jun 2026 15:07:00 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 909014B7A1CE Authentication-Results: sourceware.org; dkim=fail reason="signature verification failed" (2048-bit key, secure) header.d=oderland.se header.i=@oderland.se header.a=rsa-sha256 header.s=default header.b=tO5i62+C X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from vsp02-out.oderland.com (vsp02-out.oderland.com [IPv6:2a02:28f0::26:1]) by sourceware.org (Postfix) with ESMTPS id 48F644B7A1CE for ; Mon, 8 Jun 2026 15:06:21 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 48F644B7A1CE Authentication-Results: sourceware.org; dmarc=pass (p=reject dis=none) header.from=oderland.se Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=oderland.se ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 48F644B7A1CE Authentication-Results: sourceware.org; arc=none smtp.remote-ip=2a02:28f0::26:1 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1780931181; cv=none; b=nuNBzKGJW+noPoI+TCohb7wR00RtZYI28whqrg7xZ2gy34tU3xaS86UpVzc4cp5OE+OpBS+e2tbYKaZYwk0CVkoQEqsSJ4sOnCe4fV3HV0qdjeK5Wwr0hoQAhu15HUmPFa9MhQGXIplhAxV7+PkAX8jBlbBuz4/C7DNsDIT5A4Y= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1780931181; c=relaxed/simple; bh=miapjdq3z0uRltcHEFsEoXKxM7an7fCS1AD3bxJ62Ys=; h=DKIM-Signature:Date:From:To:Message-ID:Subject:MIME-Version; b=nyI0G8rJqrvPhfSsw/UV4LwhrtsAJPFfBIWqyTzxxfN84eHqZSWBq8QPp6HffdToXsi0N7z+35Sa5WEDinRXC64kDaj5OChk7mgxy5hUcxUz7AfBGWoOFR8g49s3YZQSywWh7MRd1VdUuJ8MfehyKXcylcslnPsLZZJseBDRwD8= ARC-Authentication-Results: i=1; sourceware.org; dkim=pass (2048-bit key, secure) header.d=oderland.se header.i=@oderland.se header.a=rsa-sha256 header.s=default header.b=tO5i62+C DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 48F644B7A1CE X-Scanned-Cookie: fba6681434452ac141d4b74502bcc294124a117a Received: from office.oderland.com (office.oderland.com [91.201.60.5]) by vsp-out.oderland.com (Halon) with ESMTPSA id 9aafe339-634b-11f1-aebf-5d63325beedc; Mon, 08 Jun 2026 17:06:19 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=oderland.se ; s=default; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Subject: Message-ID:To:From:Date:Sender:Reply-To:Cc:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=cgK8tdBVdU3DSILhUGrSZJIflbwh5C152M8WMZehw1g=; b=tO5i62+CSaQebz1ORVhsniueK0 +71MI2ZkxvWp2jVaiOZlMcUs+/8jj9zQloKXmpMdQy91i2wyidP4OfqIEfHS7dN1+iE36v+weH9h1 9yCygZVDl2ugxGbFzPlrIAuf1nKY1QN8zHVzm93t1AkiLKccFF6nVo+pGPTkPMYjMlTylDQiFv2JJ MhgOcjD2lgKyx9hdVmQiLdg64HsSWhvGPTanO5r6XDHzzqQa41zRhW5abwK2ABlp1kpSl5TFSKk/C Ho+lDiCukccBc+FE7Fnka37QvMeK/M7AOxUev6kMzjtsSn7sGUUPXLa3WfudWkhW9WWgEHAdzegBS Xpld5B5g==; Received: from ox-backend03.oderland.net ([46.16.239.92]:33316) by office.oderland.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.99.4) (envelope-from ) id 1wWbYR-00000009eIt-36uW for libc-alpha@sourceware.org; Mon, 08 Jun 2026 17:06:19 +0200 Date: Mon, 8 Jun 2026 17:06:19 +0200 (CEST) From: Josef Johansson To: "libc-alpha@sourceware.org" Message-ID: <189625622.353207.1780931179308@ox.oderland.com> Subject: [PATCH] nscd: Typo in comment MIME-Version: 1.0 X-Priority: 3 Importance: Normal X-Mailer: Open-Xchange Mailer v7.10.6-Rev91 X-Originating-Client: open-xchange-appsuite x-oderland-domain-valid: yes X-Spam-Status: No, score=-11.1 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE, SPF_PASS, TXREP, URIBL_BLOCKED shortcircuit=no autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libc-alpha-bounces~patchwork=sourceware.org@sourceware.org Fixes: https://sourceware.org/bugzilla/show_bug.cgi?id=34240 Signed-off-by: Josef Johansson Reviewed-by: Florian Weimer --- nscd/grpcache.c | 2 +- nscd/hstcache.c | 2 +- nscd/initgrcache.c | 2 +- nscd/pwdcache.c | 2 +- nscd/servicescache.c | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/nscd/grpcache.c b/nscd/grpcache.c index a05f6fb6e6..5be8a70c79 100644 --- a/nscd/grpcache.c +++ b/nscd/grpcache.c @@ -192,7 +192,7 @@ cache_addgr (struct database_dyn *db, int fd, request_header *req, + gr_mem_cnt * sizeof (uint32_t) + gr_name_len + gr_passwd_len + gr_mem_len_total); - /* If we refill the cache, first assume the reconrd did not + /* If we refill the cache, first assume the record did not change. Allocate memory on the cache since it is likely discarded anyway. If it turns out to be necessary to have a new record we can still allocate real memory. */ diff --git a/nscd/hstcache.c b/nscd/hstcache.c index 78485fbac3..fe91818640 100644 --- a/nscd/hstcache.c +++ b/nscd/hstcache.c @@ -224,7 +224,7 @@ cache_addhst (struct database_dyn *db, int fd, request_header *req, + h_aliases_cnt * sizeof (uint32_t) + h_addr_list_cnt * hst->h_length); - /* If we refill the cache, first assume the reconrd did not + /* If we refill the cache, first assume the record did not change. Allocate memory on the cache since it is likely discarded anyway. If it turns out to be necessary to have a new record we can still allocate real memory. */ diff --git a/nscd/initgrcache.c b/nscd/initgrcache.c index ac7b948a46..e5e00b89ee 100644 --- a/nscd/initgrcache.c +++ b/nscd/initgrcache.c @@ -245,7 +245,7 @@ addinitgroupsX (struct database_dyn *db, int fd, request_header *req, total = offsetof (struct dataset, strdata) + start * sizeof (int32_t); - /* If we refill the cache, first assume the reconrd did not + /* If we refill the cache, first assume the record did not change. Allocate memory on the cache since it is likely discarded anyway. If it turns out to be necessary to have a new record we can still allocate real memory. */ diff --git a/nscd/pwdcache.c b/nscd/pwdcache.c index 715775be2f..29b83fa6be 100644 --- a/nscd/pwdcache.c +++ b/nscd/pwdcache.c @@ -186,7 +186,7 @@ cache_addpw (struct database_dyn *db, int fd, request_header *req, + pw_name_len + pw_passwd_len + pw_gecos_len + pw_dir_len + pw_shell_len); - /* If we refill the cache, first assume the reconrd did not + /* If we refill the cache, first assume the record did not change. Allocate memory on the cache since it is likely discarded anyway. If it turns out to be necessary to have a new record we can still allocate real memory. */ diff --git a/nscd/servicescache.c b/nscd/servicescache.c index aa8a80d483..d4ec08f3e8 100644 --- a/nscd/servicescache.c +++ b/nscd/servicescache.c @@ -180,7 +180,7 @@ cache_addserv (struct database_dyn *db, int fd, request_header *req, + s_proto_len + s_aliases_cnt * sizeof (uint32_t)); - /* If we refill the cache, first assume the reconrd did not + /* If we refill the cache, first assume the record did not change. Allocate memory on the cache since it is likely discarded anyway. If it turns out to be necessary to have a new record we can still allocate real memory. */