]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libfdisk: (dos) Fix setting CHS values when creating new partition
authorPali Rohár <pali.rohar@gmail.com>
Tue, 6 Jul 2021 15:12:13 +0000 (17:12 +0200)
committerPali Rohár <pali.rohar@gmail.com>
Thu, 15 Jul 2021 19:49:30 +0000 (21:49 +0200)
commited5a0f331bd825b9613445fdf2032b6af8ef7949
tree143d74c7a458b330a4cb62babbb09c7ab221647e
parentbfdee4708245f4020692ee4fef292ddeeebcd388
libfdisk: (dos) Fix setting CHS values when creating new partition

It does not matter if dos compatibility flag is turned on or off. CHS
values in partition entry can overflow also when dos compatibility flag is
turned off. In this case maximal representable CHS values should be used.

Signed-off-by: Pali Rohár <pali.rohar@gmail.com>
libfdisk/src/dos.c