Print this page
3243 Add shadow support to getent(1)

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/getent/getent.c
          +++ new/usr/src/cmd/getent/getent.c
↓ open down ↓ 34 lines elided ↑ open up ↑
  35   35  
  36   36  static const char *cmdname;
  37   37  
  38   38  struct table {
  39   39          char    *name;                  /* name of the table */
  40   40          int     (*func)(const char **); /* function to do the lookup */
  41   41  };
  42   42  
  43   43  static struct table t[] = {
  44   44          { "passwd",     dogetpw },
       45 +        { "shadow",     dogetsp },
  45   46          { "group",      dogetgr },
  46   47          { "hosts",      dogethost },
  47   48          { "ipnodes",    dogetipnodes },
  48   49          { "services",   dogetserv },
  49   50          { "protocols",  dogetproto },
  50   51          { "ethers",     dogetethers },
  51   52          { "networks",   dogetnet },
  52   53          { "netmasks",   dogetnetmask },
  53   54          { "project",    dogetproject },
  54   55          { NULL,         NULL }
↓ open down ↓ 54 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX