Lines Matching refs:pw
58 p_login(const char *p, struct passwd *pw, ENTRY *ep)
69 if (!(pw->pw_name = strdup(p))) {
85 p_passwd(const char *p, struct passwd *pw, ENTRY *ep)
88 if (!(pw->pw_passwd = strdup(p))) {
98 p_uid(const char *p, struct passwd *pw, ENTRY *ep)
121 pw->pw_uid = (uid_t)id;
127 p_gid(const char *p, struct passwd *pw, ENTRY *ep)
142 pw->pw_gid = gr->gr_gid;
155 pw->pw_gid = (gid_t)id;
161 p_class(const char *p, struct passwd *pw, ENTRY *ep)
164 if (!(pw->pw_class = strdup(p))) {
174 p_change(const char *p, struct passwd *pw, ENTRY *ep)
177 if (!atot(p, &pw->pw_change))
185 p_expire(const char *p, struct passwd *pw, ENTRY *ep)
188 if (!atot(p, &pw->pw_expire))
196 p_gecos(const char *p, struct passwd *pw, ENTRY *ep)
208 p_hdir(const char *p, struct passwd *pw, ENTRY *ep)
215 if (!(pw->pw_dir = strdup(p))) {
224 p_shell(const char *p, struct passwd *pw, ENTRY *ep)
229 if (!(pw->pw_shell = strdup(_PATH_BSHELL))) {
236 if (uid && pw->pw_shell && !ok_shell(pw->pw_shell)) {
237 warnx("%s: current shell non-standard", pw->pw_shell);
248 if (!(pw->pw_shell = strdup(p))) {