Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37407349
en ru br
Репозитории ALT
S:4.3.30-alt2
5.1: 4.3.16-alt0.M51.1
www.altlinux.org/Changes

Группа :: Мониторинг
Пакет: xymon

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Патч: xymon.nullfollowsincl.patch
Скачать


# When files are 'include'd in hosts.cfg (or anywhere else) using dispinclude or netinclude, 
# xymond (and other code) doesn't see them. This means xymonnet might end up sending data
# for hosts included via netinclude only to the local xymond process, which has no data for it
# and considers it a ghost server.
# 
# This patch forces all code OTHER than xymonnet and xymongen to follow all three types of include's.
# There may be unknown side-effects.
--- lib/stackio.c.nullok	2012-01-10 15:58:50.830244123 -0800
+++ lib/stackio.c	2012-01-10 16:33:22.452262742 -0800
@@ -423,1 +423,3 @@
-		     (extraincl && (strncmp(bufpastwhitespace, extraincl, strlen(extraincl)) == 0)) ) {
+		     (extraincl && (strncmp(bufpastwhitespace, extraincl, strlen(extraincl)) == 0)) ||
+		     (!extraincl && (strncmp(bufpastwhitespace, "netinclude ", 11) == 0)) ||
+		     (!extraincl && (strncmp(bufpastwhitespace, "dispinclude ", 12) == 0)) ) {
 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin