Lines Matching refs:command
205 char command[1]; member
429 static void init_exec(const char *command) in init_exec() argument
432 unsigned command_size = strlen(command) + 8; in init_exec()
439 dash = (command[0] == '-' /* maybe? && command[1] == '/' */); in init_exec()
440 command += dash; in init_exec()
443 if (strpbrk(command, "~`!$^&*()=|\\{}[];\"'<>?") != NULL) { in init_exec()
444 sprintf(buf, "exec %s", command); /* excluding "-" */ in init_exec()
450 command = LIBBB_DEFAULT_LOGIN_SHELL + 1; in init_exec()
455 next = strcpy(buf, command - dash); /* command including "-" */ in init_exec()
456 command = next + dash; in init_exec()
473 BB_EXECVP(command, cmd); in init_exec()
474 message(L_LOG | L_CONSOLE, "can't run '%s': "STRERROR_FMT, command STRERROR_ERRNO); in init_exec()
524 a->command, getpid(), a->terminal); in run()
547 (int)getpid(), a->terminal, a->command); in run()
551 init_exec(a->command); in run()
617 static void new_init_action(uint8_t action_type, const char *command, const char *cons) in new_init_action() argument
637 if (strcmp(a->command, command) == 0 in new_init_action()
651 a = xzalloc(sizeof(*a) + strlen(command)); in new_init_action()
657 strcpy(a->command, command); in new_init_action()
660 a->command, a->action_type, a->terminal); in new_init_action()
867 dbg_message(L_CONSOLE, "Trying to re-exec %s", a->command); in exec_restart_action()
876 init_exec(a->command); in exec_restart_action()
1207 a->command, (unsigned)wpid); in init_main()