summaryrefslogtreecommitdiffstats
path: root/runtime
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2012-03-01 12:25:39 +0100
committerRainer Gerhards <rgerhards@adiscon.com>2012-03-01 12:25:39 +0100
commit115718de967f673fc89ce8b8be1b16081ca4dde1 (patch)
tree31c8ba575f8db55ea7f769d9b1907c65bcc6aa12 /runtime
parentaafa9b41a5f06b88f11df5c837427e171e1048d7 (diff)
parentc2970de8b0dd07c52f3a107e5ec3de55010c9999 (diff)
downloadrsyslog-115718de967f673fc89ce8b8be1b16081ca4dde1.tar.gz
rsyslog-115718de967f673fc89ce8b8be1b16081ca4dde1.tar.xz
rsyslog-115718de967f673fc89ce8b8be1b16081ca4dde1.zip
Merge branch 'v5-stable' into v5-devel
Conflicts: ChangeLog plugins/imklog/imklog.c plugins/imklog/imklog.h
Diffstat (limited to 'runtime')
-rw-r--r--runtime/conf.c5
-rw-r--r--runtime/rsyslog.h1
-rw-r--r--runtime/unlimited_select.h29
3 files changed, 19 insertions, 16 deletions
diff --git a/runtime/conf.c b/runtime/conf.c
index cbba1790..46a89281 100644
--- a/runtime/conf.c
+++ b/runtime/conf.c
@@ -27,7 +27,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-#define CFGLNSIZ 4096 /* the maximum size of a configuraton file line, after re-combination */
+#define CFGLNSIZ 64*1024 /* the maximum size of a configuraton file line, after re-combination */
#include "config.h"
#include <stdlib.h>
#include <stdio.h>
@@ -446,6 +446,9 @@ processConfFile(uchar *pConfFile)
if ((p - cbuf) > CFGLNSIZ - 30) {
/* Oops the buffer is full - what now? */
cline = cbuf;
+ dbgprintf("buffer overflow extending config file\n");
+ errmsg.LogError(0, RS_RET_CONFIG_ERROR,
+ "error: config file line %d too long", iLnNbr);
} else {
*p = 0;
cline = p;
diff --git a/runtime/rsyslog.h b/runtime/rsyslog.h
index 06438081..adcd4656 100644
--- a/runtime/rsyslog.h
+++ b/runtime/rsyslog.h
@@ -348,6 +348,7 @@ enum rsRetVal_ /** return value. All methods return this if not specified oth
RS_RET_MISSING_WHITESPACE = -2185, /**< whitespace is missing in some config construct */
RS_RET_OK_WARN = -2186, /**< config part: everything was OK, but a warning message was emitted */
+ RS_RET_CONF_RQRD_PARAM_MISSING = -2208,/**< required parameter in config object is missing */
/* RainerScript error messages (range 1000.. 1999) */
RS_RET_SYSVAR_NOT_FOUND = 1001, /**< system variable could not be found (maybe misspelled) */
diff --git a/runtime/unlimited_select.h b/runtime/unlimited_select.h
index 3fa7eb06..ec1e4498 100644
--- a/runtime/unlimited_select.h
+++ b/runtime/unlimited_select.h
@@ -2,24 +2,23 @@
* Tweak the macros for accessing fd_set so that the select() syscall
* won't be limited to a particular number of file descriptors.
*
- * Copyright 2009 Rainer Gerhards and Adiscon GmbH.
+ * Copyright 2009-2012 Adiscon GmbH.
*
* This file is part of rsyslog.
*
- * Rsyslog is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * Rsyslog is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with Rsyslog. If not, see <http://www.gnu.org/licenses/>.
- *
- * A copy of the GPL can be found in the file "COPYING" in this distribution.
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ * -or-
+ * see COPYING.ASL20 in the source distribution
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
*/
#ifndef UNLIMITED_SELECT_H_INCLUDED