diff options
Diffstat (limited to 'src/cfg_file.y')
-rw-r--r-- | src/cfg_file.y | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/cfg_file.y b/src/cfg_file.y index 9ddc5850f..e4e4d8dbe 100644 --- a/src/cfg_file.y +++ b/src/cfg_file.y @@ -48,7 +48,7 @@ struct statfile_section *cur_section = NULL; %token LOGGING LOG_TYPE LOG_TYPE_CONSOLE LOG_TYPE_SYSLOG LOG_TYPE_FILE %token LOG_LEVEL LOG_LEVEL_DEBUG LOG_LEVEL_INFO LOG_LEVEL_WARNING LOG_LEVEL_ERROR LOG_FACILITY LOG_FILENAME %token STATFILE ALIAS PATTERN WEIGHT STATFILE_POOL_SIZE SIZE TOKENIZER CLASSIFIER -%token DELIVERY LMTP ENABLED AGENT SECTION LUACODE RAW_MODE +%token DELIVERY LMTP ENABLED AGENT SECTION LUACODE RAW_MODE PROFILE_FILE %type <string> STRING %type <string> VARIABLE @@ -94,6 +94,7 @@ command : | delivery | luacode | raw_mode + | profile_file ; tempdir : @@ -842,6 +843,16 @@ raw_mode: } ; +profile_file: + PROFILE_FILE EQSIGN QUOTEDSTRING { +#ifdef WITH_GPREF_TOOLS + cfg->profile_path = $3; +#else + yywarn ("yyparse: profile_file directive is ignored as gperf support is not enabled"); +#endif + } + ; + %% /* * vi:ts=4 |