代码拉取完成,页面将自动刷新
From 5bd28f494ece506daa58861bf46e726c3958021e Mon Sep 17 00:00:00 2001
From: Karel Zak <kzak@redhat.com>
Date: Mon, 5 Dec 2022 12:36:42 +0100
Subject: [PATCH] ldattach: fix --intro-command and --pause
The long version of the command line options should not ignore arguments.
Fixes: https://github.com/util-linux/util-linux/issues/1940
Signed-off-by: Karel Zak <kzak@redhat.com>
---
sys-utils/ldattach.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/sys-utils/ldattach.c b/sys-utils/ldattach.c
index 3c853f829..0a6b6f2d2 100644
--- a/sys-utils/ldattach.c
+++ b/sys-utils/ldattach.c
@@ -303,8 +303,8 @@ int main(int argc, char **argv)
{"help", no_argument, NULL, 'h'},
{"version", no_argument, NULL, 'V'},
{"debug", no_argument, NULL, 'd'},
- {"intro-command", no_argument, NULL, 'c'},
- {"pause", no_argument, NULL, 'p'},
+ {"intro-command", required_argument, NULL, 'c'},
+ {"pause", required_argument, NULL, 'p'},
{NULL, 0, NULL, 0}
};
--
2.27.0
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。