| 97 | */ |
| 98 | |
| 99 | int exec_check |
| 100 | ( |
| 101 | string const * command, |
| 102 | LIST * * pShell, |
| 103 | int * error_length, |
| 104 | int * error_max_length |
| 105 | ) |
| 106 | { |
| 107 | int const is_raw_cmd = is_raw_command_request( *pShell ); |
| 108 | |
| 109 | /* We allow empty commands for non-default shells since we do not really |
| 110 | * know what they are going to do with such commands. |
| 111 | */ |
| 112 | if ( !command->size && ( is_raw_cmd || list_empty( *pShell ) ) ) |
| 113 | return EXEC_CHECK_NOOP; |
| 114 | |
| 115 | return is_raw_cmd |
| 116 | ? EXEC_CHECK_OK |
| 117 | : check_cmd_for_too_long_lines( command->value, MAXLINE, error_length, |
| 118 | error_max_length ); |
| 119 | } |
| 120 | |
| 121 | |
| 122 | /* |
nothing calls this directly
no test coverage detected