]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
losetup: make --output-all more usable
authorKarel Zak <kzak@redhat.com>
Mon, 28 Aug 2023 14:58:13 +0000 (16:58 +0200)
committerKarel Zak <kzak@redhat.com>
Mon, 28 Aug 2023 14:58:13 +0000 (16:58 +0200)
The other tools (e.g. lsblk) can use --output-all with --list or
--json. Let's make it usable also with losetup.

Signed-off-by: Karel Zak <kzak@redhat.com>
sys-utils/losetup.c

index 507292bd80570ee3c4acbffdd893ba86087331ed..0ca910ae334751abdce5f01114e844803481534c 100644 (file)
@@ -793,6 +793,7 @@ int main(int argc, char **argv)
                        list = 1;
                        break;
                case OPT_OUTPUT_ALL:
+                       list = 1;
                        for (ncolumns = 0; ncolumns < ARRAY_SIZE(infos); ncolumns++)
                                columns[ncolumns] = ncolumns;
                        break;