>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:
_______________________________________________
freebsd-bugs@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"

Reply via email to