summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2005-07-04 10:52:49 +0000
committerRainer Gerhards <rgerhards@adiscon.com>2005-07-04 10:52:49 +0000
commit8ab54c554dc1576e21cdf8694063db3f96e111f1 (patch)
treeb07c89a49767754b9b8d09c56c1fd6962feeefa5
parentfc31836d6e30e590cec576417f290e12f6d841ee (diff)
downloadrsyslog-8ab54c554dc1576e21cdf8694063db3f96e111f1.tar.gz
rsyslog-8ab54c554dc1576e21cdf8694063db3f96e111f1.tar.xz
rsyslog-8ab54c554dc1576e21cdf8694063db3f96e111f1.zip
max message size set to 32k to support IHE
-rw-r--r--Makefile6
-rw-r--r--NEWS7
-rw-r--r--syslogd.c4
3 files changed, 13 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 0eb7d0ed..c2b6b12e 100644
--- a/Makefile
+++ b/Makefile
@@ -17,8 +17,8 @@ CC= gcc
# enables the MySQL code. By default, that one is commented out
# change the comment chars to activate it if you need MySQL!
# In this case, also look down further to uncomment the libs
-#CFLAGS= $(RPM_OPT_FLAGS) -O3 -DSYSV -fomit-frame-pointer -Wall -fno-strength-reduce $(NOLARGEFILE)
-CFLAGS= $(RPM_OPT_FLAGS) -O3 -DSYSV -fomit-frame-pointer -Wall -fno-strength-reduce -DWITH_DB -I/usr/local/include $(NOLARGEFILE)
+CFLAGS= $(RPM_OPT_FLAGS) -O3 -DSYSV -fomit-frame-pointer -Wall -fno-strength-reduce $(NOLARGEFILE)
+#CFLAGS= $(RPM_OPT_FLAGS) -O3 -DSYSV -fomit-frame-pointer -Wall -fno-strength-reduce -DWITH_DB -I/usr/local/include $(NOLARGEFILE)
LDFLAGS= -s
INSTALL = install
@@ -26,7 +26,7 @@ BINDIR = /usr/sbin
MANDIR = /usr/share/man
# Uncomment the following to use mysql.
-LIBS = -lmysqlclient -L/usr/local/lib/mysql # thid define for FreeBSD
+#LIBS = -lmysqlclient -L/usr/local/lib/mysql
# There is one report that under an all ELF system there may be a need to
# explicilty link with libresolv.a. If linking syslogd fails you may wish
diff --git a/NEWS b/NEWS
index 24d8c852..32022f95 100644
--- a/NEWS
+++ b/NEWS
@@ -1,4 +1,11 @@
---------------------------------------------------------------------------
+Version 0.9.2 (RGer)
+- changed the max supported message size to 32K. This is to satisfy
+ the needs of the IHE (Integrating the Healthcare Environment)
+ initiative. They use syslog for auditing and may generate messages
+ that large.
+
+---------------------------------------------------------------------------
Version 0.9.1 (RGer)
- fixed code so that it compiles without errors under FreeBSD
- removed now unused function "allocate_log()" from syslogd.c
diff --git a/syslogd.c b/syslogd.c
index 6e3fa8f6..1834a8fd 100644
--- a/syslogd.c
+++ b/syslogd.c
@@ -7,6 +7,8 @@
* - it looks liek the time stamp is missing on internally-generated
* messages - but maybe we need to keep this for compatibility
* reasons.
+ * - selector line for MySQL aborts if no template is given and
+ * also no semicolon is present at the end of the line
*
* \brief This is what will become the rsyslogd daemon.
*
@@ -115,7 +117,7 @@ static char sccsid[] = "@(#)rsyslogd.c 0.8 (Adiscon) 18/03/2005";
#define BSD
#endif
-#define MAXLINE 1024 /* maximum line length */
+#define MAXLINE 32768 /* maximum line length */
#define DEFUPRI (LOG_USER|LOG_NOTICE)
#define DEFSPRI (LOG_KERN|LOG_CRIT)
#define TIMERINTVL 30 /* interval for checking flush, mark */