| 72 | */ |
| 73 | |
| 74 | int exec_check |
| 75 | ( |
| 76 | string const * command, |
| 77 | LIST * * pShell, |
| 78 | int32_t * error_length, |
| 79 | int32_t * error_max_length |
| 80 | ) |
| 81 | { |
| 82 | int const is_raw_cmd = 1; |
| 83 | |
| 84 | /* We allow empty commands for non-default shells since we do not really |
| 85 | * know what they are going to do with such commands. |
| 86 | */ |
| 87 | if ( !command->size && ( is_raw_cmd || list_empty( *pShell ) ) ) |
| 88 | return EXEC_CHECK_NOOP; |
| 89 | |
| 90 | return is_raw_cmd |
| 91 | ? EXEC_CHECK_OK |
| 92 | : check_cmd_for_too_long_lines( command->value, shell_maxline(), error_length, |
| 93 | error_max_length ); |
| 94 | } |
| 95 | |
| 96 | |
| 97 | /* |
nothing calls this directly
no test coverage detected