diff options
| author | jvoisin | 2017-10-10 12:12:10 +0200 |
|---|---|---|
| committer | jvoisin | 2017-10-10 12:12:10 +0200 |
| commit | 18711c04c9e6fc6056f79f05598719a112ecbba5 (patch) | |
| tree | 34016121eb1ecba352d1eb8bcb341ffcfe645db8 /src/sp_execute.c | |
| parent | 6c89a3e68e109ab9e6ef5445c00ea786cd59c89c (diff) | |
Make the `simulation` mode logs more obvious
Diffstat (limited to 'src/sp_execute.c')
| -rw-r--r-- | src/sp_execute.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sp_execute.c b/src/sp_execute.c index 014a049..419e56d 100644 --- a/src/sp_execute.c +++ b/src/sp_execute.c | |||
| @@ -13,7 +13,7 @@ static int (*orig_zend_stream_open)(const char *filename, | |||
| 13 | ZEND_COLD static inline void terminate_if_writable(const char *filename) { | 13 | ZEND_COLD static inline void terminate_if_writable(const char *filename) { |
| 14 | if (0 == access(filename, W_OK)) { | 14 | if (0 == access(filename, W_OK)) { |
| 15 | if (true == SNUFFLEUPAGUS_G(config).config_readonly_exec->simulation) { | 15 | if (true == SNUFFLEUPAGUS_G(config).config_readonly_exec->simulation) { |
| 16 | sp_log_msg("readonly_exec", SP_LOG_NOTICE, | 16 | sp_log_msg("readonly_exec", SP_LOG_SIMULATION, |
| 17 | "Attempted execution of a writable file (%s).", filename); | 17 | "Attempted execution of a writable file (%s).", filename); |
| 18 | } else { | 18 | } else { |
| 19 | sp_log_msg("readonly_exec", SP_LOG_DROP, | 19 | sp_log_msg("readonly_exec", SP_LOG_DROP, |
