Lines Matching refs:pw_shell
213 pw->pw_shell = strdup(_PATH_BSHELL); in p_shell()
217 if (!master_mode && pw->pw_shell && !ok_shell(pw->pw_shell)) { in p_shell()
218 warnx("%s: current shell non-standard", pw->pw_shell); in p_shell()
226 pw->pw_shell = strdup(p); in p_shell()
229 pw->pw_shell = dup_shell(p); in p_shell()
230 if (!pw->pw_shell) { in p_shell()
234 if (stat(pw->pw_shell, &sbuf) < 0) { in p_shell()
237 pw->pw_shell); in p_shell()
239 warn("WARNING: can't stat shell '%s'", pw->pw_shell); in p_shell()
244 pw->pw_shell); in p_shell()
248 warnx("WARNING: shell '%s' is not executable", pw->pw_shell); in p_shell()