c582b80bc7
* Enabled support for capability management (--enable-linux-caps)
30 lines
1.0 KiB
Diff
30 lines
1.0 KiB
Diff
From: Balazs Scheidler <bazsi@balabit.hu>
|
|
Date: Mon, 27 Jun 2011 07:47:51 +0000 (+0200)
|
|
Subject: fixed chain-hostnames() processing
|
|
X-Git-Url: http://git.balabit.hu/?p=bazsi%2Fsyslog-ng-3.2.git;a=commitdiff_plain;h=2db971fc37471e39f6a8b34595ca23833166831e
|
|
|
|
fixed chain-hostnames() processing
|
|
|
|
The marking of local messages was broken, and as a result hostnames generated
|
|
by chain-hostnames(yes) got also broken: instead of <source>@<hostname>
|
|
<hostname>/<hostname> got generated.
|
|
|
|
Reported-By: Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
|
|
Signed-off-by: Balazs Scheidler <bazsi@balabit.hu>
|
|
---
|
|
|
|
diff --git a/lib/logreader.c b/lib/logreader.c
|
|
index 7508abf..400668a 100644
|
|
--- a/lib/logreader.c
|
|
+++ b/lib/logreader.c
|
|
@@ -280,6 +280,9 @@ log_reader_handle_line(LogReader *self, const guchar *line, gint length, GSockAd
|
|
m = log_msg_new((gchar *) line, length,
|
|
saddr,
|
|
&self->options->parse_options);
|
|
+
|
|
+ if (self->options->flags & LR_LOCAL)
|
|
+ m->flags |= LF_LOCAL;
|
|
|
|
if (!m->saddr && self->peer_addr)
|
|
{
|