5 Star 0 Fork 8

src-openEuler/fence-virt

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
bz1668357-fence_virt-dont-report-success-incorrect-parameter.patch 1.01 KB
一键复制 编辑 原始数据 按行查看 历史
jiangxinyu 提交于 2020-11-17 16:13 . add ExclusiveArch: aarch64 to SPEC
From 83e507cd236c304ce6b95b2ba52d3894f8002dc8 Mon Sep 17 00:00:00 2001
From: Oyvind Albrigtsen <oalbrigt@redhat.com>
Date: Fri, 9 Nov 2018 13:10:29 +0100
Subject: [PATCH] fence_virt: dont report success for incorrect parameters
---
client/main.c | 2 +-
client/options.c | 1 +
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/client/main.c b/client/main.c
index 8e94093..a3135e3 100644
--- a/client/main.c
+++ b/client/main.c
@@ -112,7 +112,7 @@ main(int argc, char **argv)
args.mode = MODE_VSOCK;
if (args.flags & F_ERR) {
- if (args.op != FENCE_VALIDATEALL)
+ if (args.op != FENCE_VALIDATEALL)
args_usage(argv[0], my_options, (argc == 1));
exit(1);
}
diff --git a/client/options.c b/client/options.c
index a3f321b..4b5ed56 100644
--- a/client/options.c
+++ b/client/options.c
@@ -904,6 +904,7 @@ args_get_stdin(const char *optstr, fence_virt_args_t *args)
"parse warning: "
"illegal variable '%s' on line %d\n", name,
line);
+ args->flags |= F_ERR;
continue;
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/src-openeuler/fence-virt.git
git@gitee.com:src-openeuler/fence-virt.git
src-openeuler
fence-virt
fence-virt
master

搜索帮助