summaryrefslogtreecommitdiff
path: root/libparted
diff options
context:
space:
mode:
authorBrian C. Lane <bcl@redhat.com>2020-12-04 15:56:14 -0800
committerBrian C. Lane <bcl@redhat.com>2020-12-04 16:03:42 -0800
commit92e6b10305b248a4943b7aa147d0c43bca7c71e3 (patch)
tree52aa2d15d4ea2c06222042f6894ab5956f077d20 /libparted
parent8df7974ac36fcea82551c3f6990f981b659e2635 (diff)
downloadparted-92e6b10305b248a4943b7aa147d0c43bca7c71e3.tar.gz
labels/bsd.c: Drop alpha_bootblock_checksum from bsd_probe
Thanks to Alpine Linux for catching this. In commit a5f69f396713ab8ac1e57458cbb9af552d2c1659 I change label to actually point to the label and failed to pass the new s0 to alpha_bootblock_checksum() instead of label. So it was writing the so-called checksum off the end of the 512b sector buffer. bug: https://gitlab.alpinelinux.org/alpine/aports/-/issues/12161 upstream report: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=45026 Signed-off-by: Brian C. Lane <bcl@redhat.com>
Diffstat (limited to 'libparted')
-rw-r--r--libparted/labels/bsd.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/libparted/labels/bsd.c b/libparted/labels/bsd.c
index 8483641..0a2b891 100644
--- a/libparted/labels/bsd.c
+++ b/libparted/labels/bsd.c
@@ -164,8 +164,6 @@ bsd_probe (const PedDevice *dev)
label = &((BSDDiskData*) s0)->label;
- alpha_bootblock_checksum(label);
-
/* check magic */
bool found = PED_LE32_TO_CPU (label->d_magic) == BSD_DISKMAGIC;
free (s0);