Print this page
2989 Eliminate use of LOGNAME_MAX in ON
1166 useradd have warning with name more 8 chars
*** 17,26 ****
--- 17,28 ----
* 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,1248 ****
{
size_t size;
char **new_env;
int e, i;
char *estr;
! char varmail[LOGNAME_MAX + 11]; /* strlen(/var/mail/) = 10, NUL */
char pwbuf[NSS_BUFLEN_PASSWD + 1];
struct passwd pwent;
struct passwd *pw = NULL;
assert(env != NULL);
--- 1240,1251 ----
{
size_t size;
char **new_env;
int e, i;
char *estr;
! 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);