summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2010-02-06 12:03:24 +0100
committerRainer Gerhards <rgerhards@adiscon.com>2010-02-06 12:03:24 +0100
commit85a0ed1ccefc9bf0d054dac0d5305b1f6cc0fe22 (patch)
tree29d5e1f391f6f9c32114c468302ea58f97c73b26
parentef193bf0ae75d206e4b50022f8c07e3b908c8491 (diff)
downloadrsyslog-85a0ed1ccefc9bf0d054dac0d5305b1f6cc0fe22.tar.gz
rsyslog-85a0ed1ccefc9bf0d054dac0d5305b1f6cc0fe22.tar.xz
rsyslog-85a0ed1ccefc9bf0d054dac0d5305b1f6cc0fe22.zip
bugfix: imuxsock incorrectly stated inputname "imudp"
Thanks to Ryan Lynch for reporting this.
-rw-r--r--ChangeLog2
-rw-r--r--plugins/imuxsock/imuxsock.c4
2 files changed, 4 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 37b70c8f..bfcb1fa6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
---------------------------------------------------------------------------
Version 4.5.8 [v4-beta] (rgerhards), 2010-01-??
+- bugfix: imuxsock incorrectly stated inputname "imudp"
+ Thanks to Ryan Lynch for reporting this.
- (slightly) enhanced support for FreeBSD by setting _PATH_MODDIR to
the correct value on FreeBSD.
Thanks to Cristiano for the patch.
diff --git a/plugins/imuxsock/imuxsock.c b/plugins/imuxsock/imuxsock.c
index 424d0904..5567a405 100644
--- a/plugins/imuxsock/imuxsock.c
+++ b/plugins/imuxsock/imuxsock.c
@@ -70,7 +70,7 @@ DEFobjCurrIf(errmsg)
DEFobjCurrIf(glbl)
DEFobjCurrIf(prop)
-static prop_t *pInputName = NULL; /* our inputName currently is always "imudp", and this will hold it */
+static prop_t *pInputName = NULL; /* our inputName currently is always "imuxsock", and this will hold it */
static int startIndexUxLocalSockets; /* process funix from that index on (used to
* suppress local logging. rgerhards 2005-08-01
* read-only after startup
@@ -312,7 +312,7 @@ CODESTARTwillRun
/* we need to create the inputName property (only once during our lifetime) */
CHKiRet(prop.Construct(&pInputName));
- CHKiRet(prop.SetString(pInputName, UCHAR_CONSTANT("imudp"), sizeof("imudp") - 1));
+ CHKiRet(prop.SetString(pInputName, UCHAR_CONSTANT("imuxsock"), sizeof("imuxsock") - 1));
CHKiRet(prop.ConstructFinalize(pInputName));
finalize_it: