]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libfdisk: don't use FAT as MBR
authorKarel Zak <kzak@redhat.com>
Wed, 17 Jul 2019 10:11:38 +0000 (12:11 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 17 Jul 2019 10:11:38 +0000 (12:11 +0200)
commit7c643ed2855058657798d9e8e80701023de14a08
treeb53be6c3afb4013f5b2fd2049640141c08adc463
parentb1062292066e0568adbbdbb104b7afdcc5dac25f
libfdisk: don't use FAT as MBR

The current libfdisk MBR detection is too weak, the result is that it
reuses MBR from FAT. The correct behavior is to create a new MBR, wipe
first sector (on write) and warn about obsolete FAT superblock.

Reported-by: Mike Fleetwood <mike.fleetwood@googlemail.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
libfdisk/src/context.c
libfdisk/src/dos.c