source: patches/linux-2.6.16.5-sun_disklabel_fix-1.patch@ e5ce78b

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since e5ce78b was 5c5752c, checked in by Jim Gifford <clfs@…>, 19 years ago

Added: sun disklabel patches. Tar Security Patch.

  • Property mode set to 100644
File size: 682 bytes
RevLine 
[5c5752c]1Submitted By: Joe Ciccone <joeciccone at crazyeyesoft dot com>
2Date: 2006-04-14
3Initial Package Version: 2.6.16
4Upstream Status: Sent
5Origin: Joe Ciccone
6Description: This patch fixes fdisk so that it can properly calculate the
7 checksum of a sun disklabel
8
9--- linux-2.6.16.orig/fs/partitions/sun.c 2006-04-14 18:12:32.000000000 -0400
10+++ linux-2.6.16/fs/partitions/sun.c 2006-04-14 18:13:14.000000000 -0400
11@@ -61,7 +61,7 @@
12 }
13 /* Look at the checksum */
14 ush = ((__be16 *) (label+1)) - 1;
15- for (csum = 0; ush >= ((__be16 *) label);)
16+ while (ush < (__be16 *) label)
17 csum ^= *ush--;
18 if (csum) {
19 printk("Dev %s Sun disklabel: Csum bad, label corrupted\n",
Note: See TracBrowser for help on using the repository browser.