MCPcopy Create free account
hub / github.com/boostorg/build / exec_check

Function exec_check

src/engine/execvms.cpp:74–94  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72 */
73
74int 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/*

Callers

nothing calls this directly

Calls 2

shell_maxlineFunction · 0.70

Tested by

no test coverage detected