Lines Matching refs:pw_shell
571 if (*pwd->pw_shell == '\0')
572 pwd->pw_shell = __UNCONST(_PATH_BSHELL);
574 shell = login_getcapstr(lc, "shell", pwd->pw_shell, pwd->pw_shell);
576 shell = pwd->pw_shell;
578 if ((pwd->pw_shell = strdup(shell)) == NULL) {
584 (void)setenv("SHELL", pwd->pw_shell, 1);
644 (void)strlcpy(tbuf + 1, (p = strrchr(pwd->pw_shell, '/')) ?
645 p + 1 : pwd->pw_shell, sizeof(tbuf) - 1);
653 execlp(pwd->pw_shell, tbuf, NULL);
654 err(EXIT_FAILURE, "%s", pwd->pw_shell);