]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
losetup: sort 'O' correctly for the mutual-exclusive check to work
authorBenno Schulenberg <bensberg@telfort.nl>
Wed, 29 Oct 2025 11:03:56 +0000 (12:03 +0100)
committerKarel Zak <kzak@redhat.com>
Mon, 3 Nov 2025 13:02:06 +0000 (14:02 +0100)
The options need to be in strict ascending order.

Signed-off-by: Benno Schulenberg <bensberg@telfort.nl>
sys-utils/losetup.c

index c2eec5600ba5ad417bb9012ee3058dd01be65a76..2a3257473d275ea259c1f54218e9e4dd7ec259b4 100644 (file)
@@ -739,7 +739,7 @@ int main(int argc, char **argv)
        static const ul_excl_t excl[] = {       /* rows and cols in ASCII order */
                { 'D','a','c','d','f','j',OPT_REMOVE },
                { 'D','c','d','f','l',OPT_REMOVE },
-               { 'D','c','d','f','O',OPT_REMOVE },
+               { 'D','O','c','d','f',OPT_REMOVE },
                { 'J',OPT_RAW },
                { 0 }
        };