diff --git a/acl.y b/acl.y index 7de977b..42d33ac 100644 --- a/acl.y +++ b/acl.y @@ -261,6 +261,7 @@ int checkACL(struct Mail * MailStruct, switch(errno) { case ENOENT: /* no master acl file */ + syslog(LOG_WARNING, "You have no global acl file (%s). This is probably not a good idea.", MasterConfig->acl_file); goto check_local_acl_file; default: syslog(LOG_ERR, "Couldn't open \"%s\" acl file: %s", MasterConfig->acl_file, strerror(errno)); @@ -289,16 +290,16 @@ int checkACL(struct Mail * MailStruct, check_local_acl_file: - /* Set up the lex scanner. */ - - BEGIN(INITIAL); - lineno = 1; operation = ACL_NONE; - /* Do we have a local acl file to test? */ if (listname == NULL) goto finished; + /* Set up the lex scanner. */ + + BEGIN(INITIAL); + lineno = 1; operation = ACL_NONE; + ListConfig = getListConfig(listname); yyin = fopen(ListConfig->acl_file, "r"); if (yyin == NULL) {