Print this page
2989 Eliminate use of LOGNAME_MAX in ON
1166 useradd have warning with name more 8 chars

@@ -18,10 +18,12 @@
  *
  * CDDL HEADER END
  */
 
 /*
+ * Copyright (c) 2013 Gary Mills
+ *
  * Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
  * Use is subject to license terms.
  */
 
 /*      Copyright (c) 1988 AT&T */

@@ -370,11 +372,11 @@
 
                 case _SC_GETPW_R_SIZE_MAX:
                         return ((long)NSS_BUFLEN_PASSWD);
 
                 case _SC_LOGIN_NAME_MAX:
-                        return ((long)(LOGNAME_MAX + 1));
+                        return ((long)(LOGIN_NAME_MAX));
 
                 case _SC_THREAD_KEYS_MAX:
                         return (-1L);
 
                 case _SC_THREAD_STACK_MIN: