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

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/oamuser/user/messages.c
          +++ new/usr/src/cmd/oamuser/user/messages.c
↓ open down ↓ 15 lines elided ↑ open up ↑
  16   16   * fields enclosed by brackets "[]" replaced with your own identifying
  17   17   * information: Portions Copyright [yyyy] [name of copyright owner]
  18   18   *
  19   19   * CDDL HEADER END
  20   20   */
  21   21  /*      Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
  22   22  /*        All Rights Reserved   */
  23   23  
  24   24  
  25   25  /*
       26 + * Copyright (c) 2013 Gary Mills
       27 + *
  26   28   * Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
  27   29   * Use is subject to license terms.
  28   30   */
  29   31  
  30      -#pragma ident   "%Z%%M% %I%     %E% SMI"        /* SVr4.0 1.6 */
  31      -
  32   32  char *errmsgs[] = {
  33   33          "WARNING: uid %ld is reserved.\n",
  34   34          "WARNING: more than NGROUPS_MAX(%d) groups specified.\n",
  35   35          "ERROR: invalid syntax.\n"
  36   36              "usage:  useradd [-u uid [-o] | -g group | -G group[[,group]...] |"
  37   37              "-d dir | -b base_dir |\n"
  38   38              "\t\t-s shell | -c comment | -m [-k skel_dir] | -f inactive |\n"
  39   39              "\t\t-e expire | -A authorization [, authorization ...] |\n"
  40   40              "\t\t-P profile [, profile ...] | -R role [, role ...] |\n"
  41   41              "\t\t-K key=value | -p project [, project ...]] login\n"
↓ open down ↓ 50 lines elided ↑ open up ↑
  92   92          "WARNING: Project entry exceeds %d char: /etc/project entry truncated."
  93   93              "\n",
  94   94          "ERROR: Invalid key.\n",
  95   95          "ERROR: Missing value specification.\n",
  96   96          "ERROR: Multiple definitions of key ``%s''.\n",
  97   97          "ERROR: Roles must be modified with ``rolemod''.\n",
  98   98          "ERROR: Users must be modified with ``usermod''.\n",
  99   99          "WARNING: gid %ld is reserved.\n",
 100  100          "ERROR: Failed to read /etc/group file due to invalid entry or"
 101  101              " read error.\n",
      102 +        "ERROR: %s is too long.  Choose another.\n",
 102  103  };
 103  104  
 104  105  int lasterrmsg = sizeof (errmsgs) / sizeof (char *);
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX