]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libfdisk: (dos) fix logical partition start
authorMartin Jungblut Schreiner <martinjungblut@gmail.com>
Mon, 29 Dec 2025 22:52:56 +0000 (19:52 -0300)
committerMartin Jungblut Schreiner <martinjungblut@gmail.com>
Mon, 29 Dec 2025 22:52:56 +0000 (19:52 -0300)
commit8b8da020f57414c90981371da71fdf32d2253ac7
tree9c2449112cbfb201b63864dd010d0a3067a87d54
parente4656fa9765f55eb4dcd45ca63b5eea43e59551b
libfdisk: (dos) fix logical partition start

fdisk could accept adjacent logical partitions, causing the EBR for the new
logical partition to be written inside the previous partition’s data area.
This can corrupt the EBR chain.

Fix free-sector search to keep an EBR gap (first_lba) after logical partitions.
libfdisk/src/dos.c