df0cabfa08
Related: RHEL-73220 - libparted: Fix dvh disklabel unhandled exception (bcl) Related: RHEL-73220 - tests: Add test for SUN disklabel handling (bcl) Related: RHEL-73220 - libparted: Fix sun disklabel unhandled exception (bcl) Resolves: RHEL-73220
34 lines
1021 B
Diff
34 lines
1021 B
Diff
From 2293e0b0f83a31410d533087a1bf6cd4ea50305c Mon Sep 17 00:00:00 2001
|
|
From: "Brian C. Lane" <bcl@redhat.com>
|
|
Date: Wed, 8 Jan 2025 13:35:04 -0800
|
|
Subject: [PATCH 3/4] libparted: Fix dvh disklabel unhandled exception
|
|
|
|
When an exception is using PED_EXCEPTION_IGNORE_CANCEL it should check
|
|
for !PED_EXCEPTION_IGNORE so that an unhandled exception is treated the
|
|
same as cancel. Otherwise it could lead to using the disklabel with
|
|
incorrect values.
|
|
|
|
(cherry picked from commit 1480769f2a7071c5a251b6c69658808199e8b05b)
|
|
|
|
Related: RHEL-73220
|
|
---
|
|
libparted/labels/dvh.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/libparted/labels/dvh.c b/libparted/labels/dvh.c
|
|
index 0f9124d..7d7dae3 100644
|
|
--- a/libparted/labels/dvh.c
|
|
+++ b/libparted/labels/dvh.c
|
|
@@ -308,7 +308,7 @@ dvh_read (PedDisk* disk)
|
|
PED_EXCEPTION_IGNORE_CANCEL,
|
|
_("Checksum is wrong, indicating the partition "
|
|
"table is corrupt."))
|
|
- == PED_EXCEPTION_CANCEL)
|
|
+ != PED_EXCEPTION_IGNORE)
|
|
return 0;
|
|
}
|
|
|
|
--
|
|
2.48.1
|
|
|