From: Benno Schulenberg Date: Wed, 29 Oct 2025 11:03:56 +0000 (+0100) Subject: losetup: sort 'O' correctly for the mutual-exclusive check to work X-Git-Tag: v2.41.3~25 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=caef4f903ae042bcb22216df6d36ec9a9f04ace3;p=thirdparty%2Futil-linux.git losetup: sort 'O' correctly for the mutual-exclusive check to work The options need to be in strict ascending order. [kzak@redhat.com: - backport to stable/v2.41] Signed-off-by: Benno Schulenberg Signed-off-by: Karel Zak --- diff --git a/sys-utils/losetup.c b/sys-utils/losetup.c index 1f09df601..97efa9747 100644 --- a/sys-utils/losetup.c +++ b/sys-utils/losetup.c @@ -726,7 +726,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' }, { 'D','c','d','f','l' }, - { 'D','c','d','f','O' }, + { 'D','O','c','d','f' }, { 'J',OPT_RAW }, { 0 } };