加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
0002-etmem-remove-unnecessary-log-code.patch 1.01 KB
一键复制 编辑 原始数据 按行查看 历史
刘波 提交于 2023-06-08 14:31 . etmem: backport bugfix patch from upstream
From 3ac65b4eb27e0e5d940e898af98de87e49e1fe99 Mon Sep 17 00:00:00 2001
From: liubo <liubo254@huawei.com>
Date: Mon, 10 Apr 2023 21:12:25 +0800
Subject: [PATCH 2/4] etmem: remove unnecessary log code
etmem supports only 400/600 configuration file
permissions.
During the permission check, the system check whether
the permisson requirements of 400 or 600 are met.
Error logs do not need to be printed during each permission
check.
Signed-off-by: liubo <liubo254@huawei.com>
---
etmem/src/etmemd_src/etmemd_common.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/etmem/src/etmemd_src/etmemd_common.c b/etmem/src/etmemd_src/etmemd_common.c
index 649f472..7a6125e 100644
--- a/etmem/src/etmemd_src/etmemd_common.c
+++ b/etmem/src/etmemd_src/etmemd_common.c
@@ -563,7 +563,6 @@ int file_permission_check(const char *file_path, mode_t mode)
file_p = buf.st_mode & S_IRWX_VALID;
if (file_p != mode) {
- etmemd_log(ETMEMD_LOG_WARN, "file : %s mode is wrong.\n", file_path);
return -1;
}
--
2.33.0
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化