]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
blkid: fix call to err_exclusive_options
authorThomas Weißschuh <thomas@t-8ch.de>
Mon, 2 Oct 2023 09:39:53 +0000 (11:39 +0200)
committerThomas Weißschuh <thomas@t-8ch.de>
Mon, 2 Oct 2023 09:44:28 +0000 (11:44 +0200)
err_exclusive_options needs to be passed the long options array,
otherwise it will crash.

Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
misc-utils/blkid.c

index 32bc6feeadc23facc98537d38e683e596a645651..6df4e074e54d8197f409e12138d22f3ca62a4ee6 100644 (file)
@@ -717,7 +717,7 @@ int main(int argc, char **argv)
        while ((c = getopt_long (argc, argv,
                            "c:DdgH:hilL:n:ko:O:ps:S:t:u:U:w:Vv", longopts, NULL)) != -1) {
 
-               err_exclusive_options(c, NULL, excl, excl_st);
+               err_exclusive_options(c, longopts, excl, excl_st);
 
                switch (c) {
                case 'c':