1 Star 0 Fork 14

yanshuai/open-isns

forked from src-openEuler/open-isns 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
0002-isnsadm-Fix-unparse-command-line-options-V-and-r.patch 1.02 KB
一键复制 编辑 原始数据 按行查看 历史
Wenchao Hao 提交于 2022-08-13 11:25 +08:00 . Backport patches to fix unparsed parameters
From 82fbb3cef309f17a88e44fe9c379d84f9835f39b Mon Sep 17 00:00:00 2001
From: Wenchao Hao <haowenchao@huawei.com>
Date: Tue, 9 Aug 2022 21:52:18 +0800
Subject: [PATCH] isnsadm: Fix unparse command line options "-V" and "-r"
Following error would reported:
root@fedora:# isnsadm -V
isnsadm: invalid option -- 'V'
Error: Unknown option
root@fedora:# isnsadm -r
isnsadm: invalid option -- 'r'
Error: Unknown option
This is because we did not add "V" and "r" to parameter
when calling getopt_long()
Signed-off-by: Wenchao Hao <haowenchao@huawei.com>
---
isnsadm.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/isnsadm.c b/isnsadm.c
index 94c705e..0710877 100644
--- a/isnsadm.c
+++ b/isnsadm.c
@@ -97,7 +97,7 @@ main(int argc, char **argv)
isns_security_t *security = NULL;
int c, status;
- while ((c = getopt_long(argc, argv, "46Cc:d:hK:k:ls:", options, NULL)) != -1) {
+ while ((c = getopt_long(argc, argv, "46Cc:d:hK:k:ls:Vr", options, NULL)) != -1) {
switch (c) {
case '4':
opt_af = AF_INET;
--
2.35.3
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/yanyan11222/open-isns.git
git@gitee.com:yanyan11222/open-isns.git
yanyan11222
open-isns
open-isns
master

搜索帮助