From: Karel Zak Date: Mon, 5 Dec 2022 11:36:42 +0000 (+0100) Subject: ldattach: fix --intro-command and --pause X-Git-Tag: v2.39-rc1~389 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5bd28f494ece506daa58861bf46e726c3958021e;p=thirdparty%2Futil-linux.git 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 --- diff --git a/sys-utils/ldattach.c b/sys-utils/ldattach.c index 3c853f8292..0a6b6f2d2a 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} };