Print this page
4078 groupadd execs getent unnecessarily
Reviewed by: Rich Lowe <richlowe@richlowe.net>
Reviewed by: Gary Mills <gary_mills@fastmail.fm>
Reviewed by: Milan Jurik <milan.jurik@xylab.cz>
Reviewed by: Gordon Ross <Gordon.W.Ross@gmail.com>

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/oamuser/user/userdefs.c
          +++ new/usr/src/cmd/oamuser/user/userdefs.c
↓ open down ↓ 20 lines elided ↑ open up ↑
  21   21   */
  22   22  
  23   23  /*
  24   24   * Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
  25   25   * Use is subject to license terms.
  26   26   */
  27   27  
  28   28  /*      Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
  29   29  /*        All Rights Reserved   */
  30   30  
  31      -
  32      -#pragma ident   "%Z%%M% %I%     %E% SMI"
       31 +/*
       32 + * Copyright (c) 2013 RackTop Systems.
       33 + */
  33   34  
  34   35  /*LINTLIBRARY*/
  35   36  
  36   37  #include        <sys/types.h>
  37   38  #include        <stdio.h>
  38   39  #include        <string.h>
  39   40  #include        <userdefs.h>
  40   41  #include        <user_attr.h>
  41   42  #include        <limits.h>
  42   43  #include        <stdlib.h>
↓ open down ↓ 4 lines elided ↑ open up ↑
  47   48  #include        "funcs.h"
  48   49  #include        "messages.h"
  49   50  
  50   51  /* Print out a NL when the line gets too long */
  51   52  #define PRINTNL()       \
  52   53          if (outcount > 40) { \
  53   54                  outcount = 0; \
  54   55                  (void) fprintf(fptr, "\n"); \
  55   56          }
  56   57  
  57      -#define SKIPWS(ptr)     while (*ptr && *ptr == ' ' || *ptr == '\t') ptr++
       58 +#define SKIPWS(ptr)     while (*ptr && (*ptr == ' ' || *ptr == '\t')) ptr++
  58   59  
  59   60  static char *dup_to_nl(char *);
  60   61  
  61   62  static struct userdefs defaults = {
  62   63          DEFRID, DEFGROUP, DEFGNAME, DEFPARENT, DEFSKL,
  63   64          DEFSHL, DEFINACT, DEFEXPIRE, DEFAUTH, DEFPROF,
  64   65          DEFROLE, DEFPROJ, DEFPROJNAME, DEFLIMPRIV,
  65   66          DEFDFLTPRIV, DEFLOCK_AFTER_RETRIES
  66   67  };
  67   68  
↓ open down ↓ 364 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX