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,12 +35,17 @@
 
 #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
+#ifdef  LOGNAME_MAX_ILLUMOS
+#define MAX_TRIPLE_LEN          (MAXHOSTNAMELEN + LOGNAME_MAX_ILLUMOS + \
+                                        MAX_DOMAIN_LEN + 5)
+#else /* LOGNAME_MAX_ILLUMOS */
 #define MAX_TRIPLE_LEN          (MAXHOSTNAMELEN + LOGNAME_MAX + \
                                         MAX_DOMAIN_LEN + 5)
+#endif /* LOGNAME_MAX_ILLUMOS */
 
 #define _F_SETMEMBER            "(&(objectClass=nisNetGroup)(cn=%s))"
 #define _F_SETMEMBER_SSD        "(&(%%s)(cn=%s))"
 
 #define N_HASH          257