diff options
| author | Ben Fuhrmannek | 2021-12-20 18:00:34 +0100 |
|---|---|---|
| committer | Ben Fuhrmannek | 2021-12-20 18:00:34 +0100 |
| commit | 2863344b21977bb5b1df276b2f17e2ac9572e42a (patch) | |
| tree | 99ffdbc157c5b48246c62b008d1aa9791229370f /src/sp_config_keywords.c | |
| parent | 6f50404217f9c6cc25654f6edd527c1d1f3286e4 (diff) | |
removed upload script x-bit check at load time, thus allowing root-user to execute test cases
Diffstat (limited to 'src/sp_config_keywords.c')
| -rw-r--r-- | src/sp_config_keywords.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/sp_config_keywords.c b/src/sp_config_keywords.c index cbe4966..138da75 100644 --- a/src/sp_config_keywords.c +++ b/src/sp_config_keywords.c | |||
| @@ -429,9 +429,6 @@ SP_PARSE_FN(parse_upload_validation) { | |||
| 429 | } else if (-1 == access(ZSTR_VAL(cfg->script), F_OK)) { | 429 | } else if (-1 == access(ZSTR_VAL(cfg->script), F_OK)) { |
| 430 | sp_log_err("config", "The `script` (%s) doesn't exist on line %zu", ZSTR_VAL(cfg->script), parsed_rule->lineno); | 430 | sp_log_err("config", "The `script` (%s) doesn't exist on line %zu", ZSTR_VAL(cfg->script), parsed_rule->lineno); |
| 431 | return SP_PARSER_ERROR; | 431 | return SP_PARSER_ERROR; |
| 432 | } else if (-1 == access(ZSTR_VAL(cfg->script), X_OK)) { | ||
| 433 | sp_log_err("config", "The `script` (%s) isn't executable on line %zu", ZSTR_VAL(cfg->script), parsed_rule->lineno); | ||
| 434 | return SP_PARSER_ERROR; | ||
| 435 | } | 432 | } |
| 436 | 433 | ||
| 437 | return SP_PARSER_STOP; | 434 | return SP_PARSER_STOP; |
