diff options
-rw-r--r-- | NEWS | 3 | ||||
-rw-r--r-- | syslogd.c | 10 |
2 files changed, 12 insertions, 1 deletions
@@ -3,6 +3,9 @@ Version 0.9.7 (RGer), 2005-08-15 - some of the previous doc files (like INSTALL) did not properly reflect the changes to the build process and the new doc. Fixed that. +- changed syslogd.c so that when compiled without database support, + an error message is displayed when a database action is detected + in the config file (previously this was used as an user rule ;)) --------------------------------------------------------------------------- Version 0.9.6 (RGer), 2005-08-09 - greatly enhanced documentation. Now available in html format in @@ -5206,10 +5206,18 @@ void cfline(line, f) dprintf(" template '%s'\n", szTemplateName); break; -#ifdef WITH_DB case '>': /* rger 2004-10-28: added support for MySQL * >server,dbname,userid,password + * rgerhards 2005-08-12: changed rsyslogd so that + * if no DB is selected and > is used, an error + * message is logged. */ +#ifndef WITH_DB + f->f_type = F_UNUSED; + errno = 0; + logerror("write to database action in config file, but rsyslogd compiled without " + "database functionality - ignored"); +#else /* WITH_DB defined! */ f->f_type = F_MYSQL; p++; |