Lines Matching defs:shell

660 		snprintf(session_type, sizeof(session_type), "shell");
685 char *shell = s->pw->pw_shell;
687 if (shell[0] == '\0') /* empty shell means /bin/sh */
688 shell =_PATH_BSHELL;
689 mm_audit_run_command(shell);
934 do_setup_env(struct ssh *ssh, Session *s, const char *shell)
1031 child_set_env(&env, &envsize, "SHELL", shell);
1176 do_rc_files(struct ssh *ssh, Session *s, const char *shell)
1191 if (xasprintf(&cmd, "%s -c '%s %s'", shell, _PATH_BSHELL,
1486 * ids, and executing the command or shell.
1494 const char *shell, *shell0;
1542 * Get the shell from the password data. An empty shell field is
1545 shell = (pw->pw_shell[0] == '\0') ? _PATH_BSHELL : pw->pw_shell;
1548 * Make sure $SHELL points to the shell from the password file,
1549 * even if shell is overridden from login.conf
1551 env = do_setup_env(ssh, s, shell);
1554 shell = login_getcapstr(lc, "shell", (char *)shell, (char *)shell);
1615 do_rc_files(ssh, s, shell);
1647 /* Get the last component of the shell name. */
1648 if ((shell0 = strrchr(shell, '/')) != NULL)
1651 shell0 = shell;
1654 * If we have no command, execute the shell. In this case, the shell
1656 * this is a login shell.
1661 /* Start the shell. Set initial character to '-'. */
1667 perror(shell);
1671 /* Execute the shell. */
1674 execve(shell, argv, env);
1676 /* Executing the shell failed. */
1677 perror(shell);
1681 * Execute the command using the user's shell. This uses the -c
1688 execve(shell, argv, env);
1689 perror(shell);
2012 channel_set_xtype(ssh, s->chanid, "session:shell");
2186 * a session is in LARVAL state until a shell, a command
2190 if (strcmp(rtype, "shell") == 0) {
2635 /* no cleanup if we're in the child for login shell */