Home | History | Annotate | Download | only in openssh

Lines Matching defs:command

145 /* original command from peer. */
286 char *command;
301 * or a command.
394 command = packet_get_string(&dlen);
395 debug("Exec command '%.500s'", command);
396 if (do_exec(s, command) != 0)
398 "command execution failed");
399 free(command);
430 * This is called to fork and execute a command when we have no tty. This
435 do_exec_no_pty(Session *s, const char *command)
563 /* Do processing for the child (exec command etc). */
564 do_child(s, command);
624 * This is called to fork and execute a command when we have a tty. This
630 do_exec_pty(Session *s, const char *command)
699 if (!(options.use_login && command == NULL)) {
703 do_login(s, command);
712 * the command.
714 do_child(s, command);
774 * This is called to fork and execute a command. If another command is
778 do_exec(Session *s, const char *command)
785 original_command = command;
786 command = options.adm_forced_command;
789 original_command = command;
790 command = forced_command;
794 if (IS_INTERNAL_SFTP(command)) {
800 "forced-command %s '%.900s'", forced, command);
804 } else if (command == NULL) {
808 snprintf(session_type, sizeof(session_type), "command");
826 if (command != NULL)
827 PRIVSEP(audit_run_command(command));
837 ret = do_exec_pty(s, command);
839 ret = do_exec_no_pty(s, command);
855 do_login(Session *s, const char *command)
896 if (check_quietlogin(s, command))
930 * Check for quiet login, either .hushlogin or command given.
933 check_quietlogin(Session *s, const char *command)
939 /* Return 1 if .hushlogin exists or a command given. */
940 if (command != NULL)
1668 * ids, and executing the command or shell.
1672 do_child(Session *s, const char *command)
1693 if (options.use_login && command != NULL)
1697 cray_setup(pw->pw_uid, pw->pw_name, command);
1707 if (!check_quietlogin(s, command))
1719 if (!check_quietlogin(s, command))
1826 args = xstrdup(command ? command : "sftp-server");
1853 * If we have no command, execute the shell. In this case, the shell
1857 if (!command) {
1880 * Execute the command using the user's shell. This uses the -c
1881 * option to execute the command.
1885 argv[2] = (char *) command;
2212 char *command = packet_get_string(&len);
2214 success = do_exec(s, command) == 0;
2215 free(command);
2297 * a session is in LARVAL state until a shell, a command