Lines Matching defs:shell

686 		snprintf(session_type, sizeof(session_type), "shell");
711 char *shell = s->pw->pw_shell;
713 if (shell[0] == '\0') /* empty shell means /bin/sh */
714 shell =_PATH_BSHELL;
715 PRIVSEP(audit_run_command(shell));
982 do_setup_env(struct ssh *ssh, Session *s, const char *shell)
1079 child_set_env(&env, &envsize, "SHELL", shell);
1218 do_rc_files(struct ssh *ssh, Session *s, const char *shell)
1233 if (xasprintf(&cmd, "%s -c '%s %s'", shell, _PATH_BSHELL,
1528 * ids, and executing the command or shell.
1536 const char *shell, *shell0;
1585 * Get the shell from the password data. An empty shell field is
1588 shell = (pw->pw_shell[0] == '\0') ? _PATH_BSHELL : pw->pw_shell;
1591 * Make sure $SHELL points to the shell from the password file,
1592 * even if shell is overridden from login.conf
1594 env = do_setup_env(ssh, s, shell);
1597 shell = login_getcapstr(lc, "shell", (char *)shell, (char *)shell);
1658 do_rc_files(ssh, s, shell);
1690 /* Get the last component of the shell name. */
1691 if ((shell0 = strrchr(shell, '/')) != NULL)
1694 shell0 = shell;
1697 * If we have no command, execute the shell. In this case, the shell
1699 * this is a login shell.
1704 /* Start the shell. Set initial character to '-'. */
1710 perror(shell);
1714 /* Execute the shell. */
1717 execve(shell, argv, env);
1719 /* Executing the shell failed. */
1720 perror(shell);
1724 * Execute the command using the user's shell. This uses the -c
1731 execve(shell, argv, env);
1732 perror(shell);
2059 channel_set_xtype(ssh, s->chanid, "session:shell");
2237 * a session is in LARVAL state until a shell, a command
2241 if (strcmp(rtype, "shell") == 0) {
2684 /* no cleanup if we're in the child for login shell */