Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 21 Dec 2013 22:03:44 +0100 (CET)
From:      Christian Weisgerber <naddy@FreeBSD.org>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   kern/185077: Sync L_cuserid with MAXLOGNAME
Message-ID:  <201312212103.rBLL3ihA038992@lorvorc.mips.inka.de>
Resent-Message-ID: <201312212110.rBLLA1FG094172@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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 <sys/param.h>, L_cuserid in <stdio.h> 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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201312212103.rBLL3ihA038992>