Lines Matching defs:shell
656 snprintf(session_type, sizeof(session_type), "shell");
824 do_setup_env(struct ssh *ssh, Session *s, const char *shell)
860 child_set_env(&env, &envsize, "SHELL", shell);
953 do_rc_files(struct ssh *ssh, Session *s, const char *shell)
968 if (xasprintf(&cmd, "%s -c '%s %s'", shell, _PATH_BSHELL,
1213 * ids, and executing the command or shell.
1221 const char *shell, *shell0;
1246 * Get the shell from the password data. An empty shell field is
1249 shell = (pw->pw_shell[0] == '\0') ? _PATH_BSHELL : pw->pw_shell;
1252 * Make sure $SHELL points to the shell from the password file,
1253 * even if shell is overridden from login.conf
1255 env = do_setup_env(ssh, s, shell);
1257 shell = login_getcapstr(lc, "shell", (char *)shell, (char *)shell);
1315 do_rc_files(ssh, s, shell);
1344 /* Get the last component of the shell name. */
1345 if ((shell0 = strrchr(shell, '/')) != NULL)
1348 shell0 = shell;
1351 * If we have no command, execute the shell. In this case, the shell
1353 * this is a login shell.
1358 /* Start the shell. Set initial character to '-'. */
1364 perror(shell);
1368 /* Execute the shell. */
1371 execve(shell, argv, env);
1373 /* Executing the shell failed. */
1374 perror(shell);
1378 * Execute the command using the user's shell. This uses the -c
1385 execve(shell, argv, env);
1386 perror(shell);
1709 channel_set_xtype(ssh, s->chanid, "session:shell");
1881 * a session is in LARVAL state until a shell, a command
1885 if (strcmp(rtype, "shell") == 0) {
2301 /* no cleanup if we're in the child for login shell */