]> git.ipfire.org Git - thirdparty/util-linux.git/commit - libfdisk/src/dos.c
libfdisk: (dos) fix logical partitions add/delete code
authorKarel Zak <kzak@redhat.com>
Tue, 26 Aug 2014 14:35:16 +0000 (16:35 +0200)
committerKarel Zak <kzak@redhat.com>
Tue, 26 Aug 2014 14:54:45 +0000 (16:54 +0200)
commit613596b3873a0d7d45396e066eee097b082ff833
tree46207caf57427fe426dadcde153796658af8ce5e
parent1d691b258e34c6d8956209e408211350edefcb93
libfdisk: (dos) fix logical partitions add/delete code

If you delete logical partition and then create a new one than fdisk
(and cfdisk) might write EBR to the first sector on the device. That's
wrong of course; because you will lost MBR (primary partitions).

(Probably introduced by commit bcddbe96882b88d53b6bc0495e7322c0820a5122
 where code completely clears EBR stuff.)

Reported-by: Michał Górny <mgorny@gentoo.org>
Signed-off-by: Karel Zak <kzak@redhat.com>
libfdisk/src/dos.c