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

@@ -17,10 +17,12 @@
  * information: Portions Copyright [yyyy] [name of copyright owner]
  *
  * CDDL HEADER END
  */
 /*
+ * Copyright (c) 2013 Gary Mills
+ *
  * Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved.
  */
 
 /*
  * zlogin provides three types of login which allow users in the global

@@ -1238,11 +1240,12 @@
 {
         size_t size;
         char **new_env;
         int e, i;
         char *estr;
-        char varmail[LOGNAME_MAX + 11]; /* strlen(/var/mail/) = 10, NUL */
+        char varmail[LOGNAME_MAX_ILLUMOS + 11]; /* strlen(/var/mail/) = */
+                                                /* 10, NUL */
         char pwbuf[NSS_BUFLEN_PASSWD + 1];
         struct passwd pwent;
         struct passwd *pw = NULL;
 
         assert(env != NULL);