diff options
Diffstat (limited to 'src/config.y')
-rw-r--r-- | src/config.y | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/config.y b/src/config.y index c998a41..404ac1d 100644 --- a/src/config.y +++ b/src/config.y @@ -213,13 +213,23 @@ peer_group_statement: ; user: TOK_STRING { +#ifdef USE_USER free(conf.user); conf.user = fastd_strdup($1->str); +#else + fastd_config_error(&@$, state, "user setting is not supported on this platform"); + YYERROR; +#endif } group: TOK_STRING { +#ifdef USE_USER free(conf.group); conf.group = fastd_strdup($1->str); +#else + fastd_config_error(&@$, state, "group setting is not supported on this platform"); + YYERROR; +#endif } drop_capabilities: |