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 2009 Sun Microsystems, Inc.  All rights reserved.
  * Use is subject to license terms.
  */
 
 

@@ -33,11 +35,11 @@
 
 #define PRINT_VAL(a)            (((a).argc == 0) || ((a).argv == NULL) || \
                                     ((a).argv[0] == NULL)) ? "*" : (a).argv[0]
 #define ISNULL(a)               (a == NULL ? "<NULL>" : a)
 #define MAX_DOMAIN_LEN          1024
-#define MAX_TRIPLE_LEN          (MAXHOSTNAMELEN + LOGNAME_MAX + \
+#define MAX_TRIPLE_LEN          (MAXHOSTNAMELEN + LOGNAME_MAX_ILLUMOS + \
                                         MAX_DOMAIN_LEN + 5)
 
 #define _F_SETMEMBER            "(&(objectClass=nisNetGroup)(cn=%s))"
 #define _F_SETMEMBER_SSD        "(&(%%s)(cn=%s))"