]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
ldattach: fix --intro-command and --pause
authorKarel Zak <kzak@redhat.com>
Mon, 5 Dec 2022 11:36:42 +0000 (12:36 +0100)
committerKarel Zak <kzak@redhat.com>
Mon, 5 Dec 2022 11:36:42 +0000 (12:36 +0100)
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

index 3c853f8292ecab02b0ec0cf90eb0bef74d04c7f1..0a6b6f2d2a7183970a7641f28924d5863f901d3c 100644 (file)
@@ -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}
        };