mirror of
https://github.com/rsyslog/rsyslog.git
synced 2025-12-17 21:00:42 +01:00
Merge branch 'v5-stable' into v6-stable
Conflicts: ChangeLog plugins/omprog/omprog.c runtime/rsyslog.h
This commit is contained in:
commit
2a813afa41
13
ChangeLog
13
ChangeLog
@ -8,6 +8,8 @@ Version 6.2.1 [v6-stable], 2012-01-??
|
||||
enough to do the interface change in v6-stable; this also eases merging
|
||||
branches!
|
||||
- re-licensed larger parts of the codebase under the Apache license 2.0
|
||||
- bugfix: omprog made rsyslog abort on startup if not binary to
|
||||
execute was configured
|
||||
---------------------------------------------------------------------------
|
||||
Version 6.2.0 [v6-stable], 2012-01-09
|
||||
- bugfix (kind of): removed numerical part from pri-text
|
||||
@ -255,6 +257,10 @@ Version 5.9.0 [V5-DEVEL] (rgerhards), 2011-03-??
|
||||
affected directive was: $ActionExecOnlyWhenPreviousIsSuspended on
|
||||
closes: http://bugzilla.adiscon.com/show_bug.cgi?id=236
|
||||
---------------------------------------------------------------------------
|
||||
Version 5.8.8 [V5-stable] 2012-0?-??
|
||||
- bugfix: omprog made rsyslog abort on startup if not binary to
|
||||
execute was configured
|
||||
---------------------------------------------------------------------------
|
||||
Version 5.8.7 [V5-stable] 2012-01-17
|
||||
- bugfix: instabilities when using RFC5424 header fields
|
||||
Thanks to Kaiwang Chen for the patch
|
||||
@ -268,6 +274,7 @@ Version 5.8.7 [V5-stable] 2012-01-17
|
||||
- bugfix: stats counter were not properly initialized on creation
|
||||
- FQDN hostname for multihomed host was not always set to the correct name
|
||||
if multiple aliases existed. Thanks to Tomas Heinreich for the patch.
|
||||
- re-licensed larger parts of the codebase under the Apache license 2.0
|
||||
---------------------------------------------------------------------------
|
||||
Version 5.8.6 [V5-stable] 2011-10-21
|
||||
- bugfix: missing whitespace after property-based filter was not detected
|
||||
@ -1111,6 +1118,11 @@ increase.
|
||||
output module interface
|
||||
---------------------------------------------------------------------------
|
||||
Version 4.8.1 [v4-stable], 2011-09-??
|
||||
- increased max config file line size to 64k
|
||||
We now also emit an error message if even 64k is not enough (not
|
||||
doing so previously may rightfully be considered as a bug)
|
||||
- bugfix: omprog made rsyslog abort on startup if not binary to
|
||||
execute was configured
|
||||
- bugfix: $ActionExecOnlyOnce interval did not work properly
|
||||
Thanks to Tomas Heinrich for the patch
|
||||
- bugfix: potential abort if ultra-large file io buffers are used and
|
||||
@ -1124,6 +1136,7 @@ Version 4.8.1 [v4-stable], 2011-09-??
|
||||
- added doc for omprog
|
||||
- FQDN hostname for multihomed host was not always set to the correct name
|
||||
if multiple aliases existed. Thanks to Tomas Heinreich for the patch.
|
||||
- re-licensed larger parts of the codebase under the Apache license 2.0
|
||||
---------------------------------------------------------------------------
|
||||
Version 4.8.0 [v4-stable] (rgerhards), 2011-09-07
|
||||
***************************************************************************
|
||||
|
||||
@ -60,7 +60,9 @@ EXTRA_DIST = \
|
||||
slackware/rc.rsyslogd \
|
||||
contrib/README \
|
||||
rsyslog.conf \
|
||||
COPYING \
|
||||
COPYING.LESSER \
|
||||
COPYING.ASL20 \
|
||||
contrib/gnutls/ca.pem \
|
||||
contrib/gnutls/cert.pem \
|
||||
contrib/gnutls/key.pem \
|
||||
|
||||
@ -18,25 +18,24 @@
|
||||
* Please note that this file replaces the klogd daemon that was
|
||||
* also present in pre-v3 versions of rsyslog.
|
||||
*
|
||||
* Copyright (C) 2008, 2009 by Rainer Gerhards and Adiscon GmbH
|
||||
* Copyright (C) 2008-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.
|
||||
*/
|
||||
#include "config.h"
|
||||
#include "rsyslog.h"
|
||||
#include <stdio.h>
|
||||
|
||||
@ -5,24 +5,23 @@
|
||||
* Major change: 2008-04-09: switched to a driver interface for
|
||||
* several platforms
|
||||
*
|
||||
* Copyright 2007-2008 Rainer Gerhards and Adiscon GmbH.
|
||||
* Copyright 2007-2012 Rainer Gerhards and 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 IMKLOG_H_INCLUDED
|
||||
#define IMKLOG_H_INCLUDED 1
|
||||
|
||||
@ -310,6 +310,12 @@ CODE_STD_STRING_REQUESTparseSelectorAct(1)
|
||||
p += sizeof(":omprog:") - 1; /* eat indicator sequence (-1 because of '\0'!) */
|
||||
CHKiRet(createInstance(&pData));
|
||||
|
||||
if(cs.szBinary == NULL) {
|
||||
errmsg.LogError(0, RS_RET_CONF_RQRD_PARAM_MISSING,
|
||||
"no binary to execute specified");
|
||||
ABORT_FINALIZE(RS_RET_CONF_RQRD_PARAM_MISSING);
|
||||
}
|
||||
|
||||
CHKmalloc(pData->szBinary = (uchar*) strdup((char*)cs.szBinary));
|
||||
/* check if a non-standard template is to be applied */
|
||||
if(*(p-1) == ';')
|
||||
|
||||
@ -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>
|
||||
@ -448,6 +448,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;
|
||||
|
||||
@ -357,7 +357,7 @@ enum rsRetVal_ /** return value. All methods return this if not specified oth
|
||||
RS_RET_ERR_LIBEE_INIT = -2201, /**< cannot obtain libee ctx */
|
||||
RS_RET_ERR_LIBLOGNORM_INIT = -2202,/**< cannot obtain liblognorm ctx */
|
||||
RS_RET_ERR_LIBLOGNORM_SAMPDB_LOAD = -2203,/**< liblognorm sampledb load failed */
|
||||
|
||||
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) */
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user