From 6487590b4fd55dddd59b43f1fcf2ebd8d56f20ac Mon Sep 17 00:00:00 2001 From: jvoisin Date: Wed, 20 Sep 2017 10:51:22 +0200 Subject: Add travis --- src/sp_execute.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/sp_execute.c') diff --git a/src/sp_execute.c b/src/sp_execute.c index faf126c..7d62e88 100644 --- a/src/sp_execute.c +++ b/src/sp_execute.c @@ -13,10 +13,10 @@ static int (*orig_zend_stream_open)(const char *filename, ZEND_COLD static inline void terminate_if_writable(const char *filename) { if (0 == access(filename, W_OK)) { if (true == SNUFFLEUPAGUS_G(config).config_readonly_exec->simulation) { - sp_log_msg("readonly_exec", LOG_NOTICE, + sp_log_msg("readonly_exec", SP_LOG_NOTICE, "Attempted execution of a writable file (%s).", filename); } else { - sp_log_msg("readonly_exec", LOG_DROP, + sp_log_msg("readonly_exec", SP_LOG_DROP, "Attempted execution of a writable file (%s).", filename); sp_terminate(); } @@ -37,7 +37,7 @@ static void check_inclusion_regexp(const char * const filename) { while (config) { pcre *config_node = (pcre*)(config->data); if (false == is_regexp_matching(config_node, filename)) { - sp_log_msg("include", LOG_DROP, "Inclusion of a forbidden file (%s).", filename); + sp_log_msg("include", SP_LOG_DROP, "Inclusion of a forbidden file (%s).", filename); sp_terminate(); } config = config->next; -- cgit v1.3