diff --git a/rudder-agent/SOURCES/patches/cfengine/21771-syslog-disableable.patch b/rudder-agent/SOURCES/patches/cfengine/21771-syslog-disableable.patch index d1dd6369a..9b811054e 100644 --- a/rudder-agent/SOURCES/patches/cfengine/21771-syslog-disableable.patch +++ b/rudder-agent/SOURCES/patches/cfengine/21771-syslog-disableable.patch @@ -1,10 +1,10 @@ -diff --color -ruN cfengine-source.orig/libpromises/feature.c cfengine-source/libpromises/feature.c ---- cfengine-source.orig/libpromises/feature.c 2023-05-10 12:38:35.192123758 +0200 -+++ cfengine-source/libpromises/feature.c 2023-05-10 12:41:33.602000922 +0200 -@@ -28,6 +28,7 @@ +diff --color -ruN cfengine-source.old/libpromises/feature.c cfengine-source/libpromises/feature.c +--- cfengine-source.old/libpromises/feature.c 2022-11-09 17:33:16.000000000 +0100 ++++ cfengine-source/libpromises/feature.c 2023-07-13 17:32:45.038890742 +0200 +@@ -27,6 +27,7 @@ + #endif "def_json_preparse", "host_specific_data_load", - "copyfrom_restrict_keys", + "syslog_disableable", NULL }; diff --git a/rudder-agent/SOURCES/patches/cfengine/23068-mustache-missing-var-is-error.patch b/rudder-agent/SOURCES/patches/cfengine/23068-mustache-missing-var-is-error.patch new file mode 100644 index 000000000..82921a783 --- /dev/null +++ b/rudder-agent/SOURCES/patches/cfengine/23068-mustache-missing-var-is-error.patch @@ -0,0 +1,13 @@ +diff --color -ruN cfengine-source.old/libntech/libutils/mustache.c cfengine-source/libntech/libutils/mustache.c +--- cfengine-source.old/libntech/libutils/mustache.c 2022-11-09 17:33:18.000000000 +0100 ++++ cfengine-source/libntech/libutils/mustache.c 2023-07-13 17:36:19.746769659 +0200 +@@ -473,7 +473,8 @@ + + if (!var) + { +- return true; ++ Log(LOG_LEVEL_ERR, "RenderVariable: {{%.*s}} mustache variable doesn't exist", content_len, content); ++ return false; + } + + switch (JsonGetElementType(var))