Blame SOURCES/rsyslog-8.24.0-rhbz1685901-symlink-error-flood.patch

ee3a35
From 31350bc0b935920f9924317b4cb3602602420f83 Mon Sep 17 00:00:00 2001
ee3a35
From: Jiri Vymazal <jvymazal@redhat.com>
ee3a35
Date: Fri, 16 Nov 2018 13:16:13 +0100
ee3a35
Subject: [PATCH] disable file vs directory error on symlinks
ee3a35
ee3a35
The file/directory node-object alignment now ignores symlinks.
ee3a35
Previously it reported error on each directory symlink spamming
ee3a35
user error logs.
ee3a35
---
ee3a35
 plugins/imfile/imfile.c | 2 +-
ee3a35
 1 file changed, 1 insertion(+), 1 deletion(-)
ee3a35
ee3a35
diff --git a/plugins/imfile/imfile.c b/plugins/imfile/imfile.c
ee3a35
index f42670ca2..1618d151c 100644
ee3a35
--- a/plugins/imfile/imfile.c
ee3a35
+++ b/plugins/imfile/imfile.c
ee3a35
@@ -869,7 +869,7 @@ poll_tree(fs_edge_t *const chld)
ee3a35
 					"directory - ignored", file);
ee3a35
 				continue;
ee3a35
 			}
ee3a35
-			if(chld->is_file != is_file) {
ee3a35
+			if(!issymlink && (chld->is_file != is_file)) {
ee3a35
 				LogMsg(0, RS_RET_ERR, LOG_WARNING,
ee3a35
 					"imfile: '%s' is %s but %s expected - ignored",
ee3a35
 					file, (is_file) ? "FILE" : "DIRECTORY",