8 Star 0 Fork 38

src-openEuler/rsyslog

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
backport-Fix-passing-the-value-to-EscapeChar.patch 1.09 KB
一键复制 编辑 原始数据 按行查看 历史
zhangqiumiao 提交于 2024-12-21 16:24 +08:00 . backport some patches from upstream
From 8f203bb219e08ec2e685d190ea21d5a7c7cecf44 Mon Sep 17 00:00:00 2001
From: Flos Lonicerae <lonicerae@gmail.com>
Date: Wed, 8 May 2024 16:45:39 +0800
Subject: [PATCH] Fix passing the value to EscapeChar.
---
runtime/cfsysline.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/runtime/cfsysline.c b/runtime/cfsysline.c
index 34b1cd7a3..06fdb4bb0 100644
--- a/runtime/cfsysline.c
+++ b/runtime/cfsysline.c
@@ -59,7 +59,7 @@ linkedList_t llCmdList; /* this is NOT a pointer - no typo here ;) */
* HINT: check if char is ' and, if so, use 'c' where c may also be things
* like \t etc.
*/
-static rsRetVal doGetChar(uchar **pp, rsRetVal (*pSetHdlr)(void*, uid_t), void *pVal)
+static rsRetVal doGetChar(uchar **pp, rsRetVal (*pSetHdlr)(void*, uchar*), void *pVal)
{
DEFiRet;
@@ -78,7 +78,7 @@ static rsRetVal doGetChar(uchar **pp, rsRetVal (*pSetHdlr)(void*, uid_t), void *
*((uchar*)pVal) = **pp;
} else {
/* we set value via a set function */
- CHKiRet(pSetHdlr(pVal, **pp));
+ CHKiRet(pSetHdlr(pVal, *pp));
}
++(*pp); /* eat processed char */
}
--
2.33.0
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/src-openeuler/rsyslog.git
git@gitee.com:src-openeuler/rsyslog.git
src-openeuler
rsyslog
rsyslog
master

搜索帮助