summaryrefslogtreecommitdiff
path: root/src/sp_execute.c
diff options
context:
space:
mode:
authorjvoisin2017-10-10 12:12:10 +0200
committerjvoisin2017-10-10 12:12:10 +0200
commit18711c04c9e6fc6056f79f05598719a112ecbba5 (patch)
tree34016121eb1ecba352d1eb8bcb341ffcfe645db8 /src/sp_execute.c
parent6c89a3e68e109ab9e6ef5445c00ea786cd59c89c (diff)
Make the `simulation` mode logs more obvious
Diffstat (limited to 'src/sp_execute.c')
-rw-r--r--src/sp_execute.c2
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,
13ZEND_COLD static inline void terminate_if_writable(const char *filename) { 13ZEND_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,