From owner-freebsd-bugs@FreeBSD.ORG Sat Dec 21 21:10:02 2013 Return-Path: Delivered-To: freebsd-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 1378EDE2 for ; Sat, 21 Dec 2013 21:10:02 +0000 (UTC) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id D7210127E for ; Sat, 21 Dec 2013 21:10:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id rBLLA1vf094173 for ; Sat, 21 Dec 2013 21:10:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id rBLLA1FG094172; Sat, 21 Dec 2013 21:10:01 GMT (envelope-from gnats) Resent-Date: Sat, 21 Dec 2013 21:10:01 GMT Resent-Message-Id: <201312212110.rBLLA1FG094172@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Christian Weisgerber Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 3F75BBC3 for ; Sat, 21 Dec 2013 21:03:54 +0000 (UTC) Received: from mail-in-06.arcor-online.net (mail-in-06.arcor-online.net [151.189.21.46]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id E65F4124B for ; Sat, 21 Dec 2013 21:03:53 +0000 (UTC) Received: from mail-in-03-z2.arcor-online.net (mail-in-03-z2.arcor-online.net [151.189.8.15]) by mx.arcor.de (Postfix) with ESMTP id 2B38B10C6A2 for ; Sat, 21 Dec 2013 22:03:45 +0100 (CET) Received: from mail-in-07.arcor-online.net (mail-in-07.arcor-online.net [151.189.21.47]) by mail-in-03-z2.arcor-online.net (Postfix) with ESMTP id 24C5E1F600A for ; Sat, 21 Dec 2013 22:03:45 +0100 (CET) Received: from lorvorc.mips.inka.de (dslb-094-218-178-083.pools.arcor-ip.net [94.218.178.83]) by mail-in-07.arcor-online.net (Postfix) with ESMTPS id E0AF4107A6B for ; Sat, 21 Dec 2013 22:03:44 +0100 (CET) Received: from lorvorc.mips.inka.de (localhost [127.0.0.1]) by lorvorc.mips.inka.de (8.14.7/8.14.7) with ESMTP id rBLL3inJ038993 for ; Sat, 21 Dec 2013 22:03:44 +0100 (CET) (envelope-from naddy@lorvorc.mips.inka.de) Received: (from naddy@localhost) by lorvorc.mips.inka.de (8.14.7/8.14.7/Submit) id rBLL3ihA038992; Sat, 21 Dec 2013 22:03:44 +0100 (CET) (envelope-from naddy) Message-Id: <201312212103.rBLL3ihA038992@lorvorc.mips.inka.de> Date: Sat, 21 Dec 2013 22:03:44 +0100 (CET) From: Christian Weisgerber To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.114 Subject: kern/185077: Sync L_cuserid with MAXLOGNAME X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list Reply-To: Christian Weisgerber List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 21 Dec 2013 21:10:02 -0000 >Number: 185077 >Category: kern >Synopsis: Sync L_cuserid with MAXLOGNAME >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat Dec 21 21:10:01 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Christian Weisgerber >Release: FreeBSD 9.2-STABLE amd64 >Organization: >Environment: Affects HEAD and FreeBSD 10. >Description: L_cuserid must match MAXLOGNAME. When MAXLOGNAME was bumped to 33 in , L_cuserid in was forgotten. Fix: Bump L_cuserid to 33. Alternatively, for HEAD, consider completely removing cuserid(3) from libcompat and L_cuserid with it. >How-To-Repeat: >Fix: Index: stdio.h =================================================================== --- stdio.h (revision 259696) +++ stdio.h (working copy) @@ -291,7 +291,7 @@ * Functions defined in all versions of POSIX 1003.1. */ #if __BSD_VISIBLE || __POSIX_VISIBLE <= 199506 -#define L_cuserid 17 /* size for cuserid(3); MAXLOGNAME, legacy */ +#define L_cuserid 33 /* size for cuserid(3); MAXLOGNAME, legacy */ #endif #if __POSIX_VISIBLE >Release-Note: >Audit-Trail: >Unformatted: