pwupd.h (7493058fb6d966132992e03c64a5b5f6fcbb38eb) pwupd.h (d2d022b9fdebd6bfe2983bb688818ed8bfc422a6)
1/*-
2 * Copyright (C) 1996
3 * David L. Nugent. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 62 unchanged lines hidden (view full) ---

71 char *shelldir; /* Where shells are located */
72 char **shells; /* List of shells */
73 char *shell_default; /* Default shell */
74 char *default_group; /* Default group number */
75 StringList *groups; /* Default (additional) groups */
76 char *default_class; /* Default user class */
77 uid_t min_uid, max_uid; /* Allowed range of uids */
78 gid_t min_gid, max_gid; /* Allowed range of gids */
1/*-
2 * Copyright (C) 1996
3 * David L. Nugent. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 62 unchanged lines hidden (view full) ---

71 char *shelldir; /* Where shells are located */
72 char **shells; /* List of shells */
73 char *shell_default; /* Default shell */
74 char *default_group; /* Default group number */
75 StringList *groups; /* Default (additional) groups */
76 char *default_class; /* Default user class */
77 uid_t min_uid, max_uid; /* Allowed range of uids */
78 gid_t min_gid, max_gid; /* Allowed range of gids */
79 int expire_days; /* Days to expiry */
80 int password_days; /* Days to password expiry */
79 time_t expire_days; /* Days to expiry */
80 time_t password_days; /* Days to password expiry */
81};
82
83struct pwconf {
84 char rootdir[MAXPATHLEN];
85 char etcpath[MAXPATHLEN];
81};
82
83struct pwconf {
84 char rootdir[MAXPATHLEN];
85 char etcpath[MAXPATHLEN];
86 char *newname;
87 char *config;
88 char *gecos;
89 int fd;
90 int rootfd;
86 int fd;
87 int rootfd;
91 int which;
92 bool quiet;
93 bool force;
94 bool all;
95 bool dryrun;
96 bool pretty;
97 bool v7;
98 bool checkduplicate;
88 bool checkduplicate;
99 bool deletehome;
100 bool precrypted;
101 struct userconf *userconf;
102};
103
104extern struct pwf PWF;
105extern struct pwf VPWF;
106extern struct pwconf conf;
107
108#define SETPWENT() PWF._setpwent()
109#define ENDPWENT() PWF._endpwent()

--- 56 unchanged lines hidden ---
89};
90
91extern struct pwf PWF;
92extern struct pwf VPWF;
93extern struct pwconf conf;
94
95#define SETPWENT() PWF._setpwent()
96#define ENDPWENT() PWF._endpwent()

--- 56 unchanged lines hidden ---