kern/185077: Sync L_cuserid with MAXLOGNAME
Christian Weisgerber
naddy at FreeBSD.org
Sat Dec 21 21:10:02 UTC 2013
>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:
More information about the freebsd-bugs
mailing list