diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2010-04-08 18:52:00 +0400 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2010-04-08 18:52:00 +0400 |
commit | da502b854015fe2053689249323e1228afd1460b (patch) | |
tree | a0a1bfef5767b4f31583f1077a5a89e743cec879 /src/cfg_file.y | |
parent | b98e24b4b430d185f612281b2c6e5441f108f165 (diff) | |
download | rspamd-da502b854015fe2053689249323e1228afd1460b.tar.gz rspamd-da502b854015fe2053689249323e1228afd1460b.zip |
* Modules section
Diffstat (limited to 'src/cfg_file.y')
-rw-r--r-- | src/cfg_file.y | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/src/cfg_file.y b/src/cfg_file.y index 58813ad6b..07853bfa5 100644 --- a/src/cfg_file.y +++ b/src/cfg_file.y @@ -458,7 +458,6 @@ modulesbody: modulescmd: MODULE_PATH EQSIGN QUOTEDSTRING { -#if !defined(WITHOUT_PERL) || defined(WITH_LUA) struct stat st; struct script_module *cur; glob_t globbuf; @@ -472,15 +471,9 @@ modulescmd: } globbuf.gl_offs = 0; - #ifdef WITH_LUA len = strlen ($3) + sizeof ("*.lua"); pattern = g_malloc (len); snprintf (pattern, len, "%s%s", $3, "*.lua"); - #else - len = strlen ($3) + sizeof ("*.pl") - pattern = g_malloc (len); - snprintf (pattern, len, "%s%s", $3, "*.pl"); - #endif if (glob(pattern, GLOB_DOOFFS, NULL, &globbuf) == 0) { for (i = 0; i < globbuf.gl_pathc; i ++) { @@ -499,10 +492,6 @@ modulescmd: YYERROR; } g_free (pattern); -#else - yyerror ("require command is not available when perl support is not compiled"); - YYERROR; -#endif } ; |