Print this page
2989 Eliminate use of LOGNAME_MAX in ON
1166 useradd have warning with name more 8 chars
        
*** 18,27 ****
--- 18,29 ----
   *
   * CDDL HEADER END
   */
  
  /*
+  * Copyright (c) 2013 Gary Mills
+  *
   * Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
   * Use is subject to license terms.
   */
  
  /*
*** 74,84 ****
--- 76,91 ----
   * Set to ZONENAME_MAX, the minimum value needed to allow any
   * zone to be specified.
   */
  #define ARGSIZ ZONENAME_MAX
  
+ #ifdef  LOGNAME_MAX_ILLUMOS
+ #define MAXUGNAME (LOGNAME_MAX_ILLUMOS+2)       /* max chars in a user/group */
+                                                 /* name or printed u/g id */
+ #else /* LOGNAME_MAX_ILLUMOS */
  #define MAXUGNAME 10    /* max chars in a user/group name or printed u/g id */
+ #endif /* LOGNAME_MAX_ILLUMOS */
  
  /* Structure for storing user or group info */
  struct ugdata {
          id_t    id;                     /* numeric user-id or group-id */
          char    name[MAXUGNAME+1];      /* user/group name, null terminated */