From: Balazs Scheidler 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 @ / got generated. Reported-By: Enrico Scholz Signed-off-by: Balazs Scheidler --- 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) {