Print this page
Add libuserdefs and use in cmd/{oamuser,passwd}

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/oamuser/user/useradd.c
          +++ new/usr/src/cmd/oamuser/user/useradd.c
↓ open down ↓ 87 lines elided ↑ open up ↑
  88   88  extern void dispusrdef();
  89   89  
  90   90  static void cleanup();
  91   91  
  92   92  extern int check_perm(), valid_expire();
  93   93  extern int putusrdef(), valid_uid();
  94   94  extern int call_passmgmt(), edit_group(), create_home();
  95   95  extern int edit_project();
  96   96  extern int **valid_lgroup();
  97   97  extern projid_t **valid_lproject();
  98      -extern void update_def(struct userdefs *);
  99      -extern void import_def(struct userdefs *);
 100   98  extern int get_default_zfs_flags();
 101   99  
 102  100  static uid_t uid;                       /* new uid */
 103  101  static char *logname;                   /* login name to add */
 104  102  static struct userdefs *usrdefs;        /* defaults for useradd */
 105  103  
 106  104  char *cmdname;
 107  105  
 108  106  static char homedir[ PATH_MAX + 1 ];    /* home directory */
 109  107  static char gidstring[32];              /* group id string representation */
↓ open down ↓ 688 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX