From 41e1b0f5afd093699d1f96baf8d8fbfa8aeb85a8 Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Mon, 5 Aug 2019 05:57:13 +0000 Subject: system/parted: fix BSD disklabel manipulation on big endian systems See also: upstream bug 31923 --- system/parted/bsd-endian.patch | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 system/parted/bsd-endian.patch (limited to 'system/parted/bsd-endian.patch') diff --git a/system/parted/bsd-endian.patch b/system/parted/bsd-endian.patch new file mode 100644 index 000000000..6e5e13c0e --- /dev/null +++ b/system/parted/bsd-endian.patch @@ -0,0 +1,13 @@ +See-Also: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=31923 + +--- parted-3.2/libparted/labels/bsd.c.old 2014-06-15 18:17:43.000000000 +0000 ++++ parted-3.2/libparted/labels/bsd.c 2019-08-05 05:48:52.914401379 +0000 +@@ -364,7 +364,7 @@ + max_part = i; + } + +- label->d_npartitions = PED_CPU_TO_LE16 (max_part) + 1; ++ label->d_npartitions = PED_CPU_TO_LE16 (max_part + 1); + label->d_checksum = xbsd_dkcksum (label); + + alpha_bootblock_checksum (bsd_specific->boot_code); -- cgit v1.2.3-70-g09d2