[PATCH 1/3] losetup: sort 'O' correctly for the mutual-exclusive check to work
Benno Schulenberg <[email protected]> Wed, 29 Oct 2025 12:03:56 +0100
| Newsgroups | org.kernel.vger.util-linux |
|---|---|
| Message-ID | <[email protected]> |
The options need to be in strict ascending order. Signed-off-by: Benno Schulenberg <[email protected]> --- sys-utils/losetup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys-utils/losetup.c b/sys-utils/losetup.c index c2eec5600..2a3257473 100644 --- a/sys-utils/losetup.c +++ b/sys-utils/losetup.c @@ -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 } }; -- 2.51.2