OSDN Git Service

libparted: don't allow values less than 1 (#665496)
authorBrian C. Lane <bcl@redhat.com>
Tue, 21 Jun 2011 17:44:16 +0000 (10:44 -0700)
committerJim Meyering <meyering@redhat.com>
Wed, 22 Jun 2011 19:56:09 +0000 (21:56 +0200)
commitbca7bb94e16acb1e88df97a5ce2c38adb76b072d
tree5377be2f982273e26c8403148d1cbb1b8aa38dff
parent18e727d492933ae1ebb16961e1df553f9299af8b
libparted: don't allow values less than 1 (#665496)

When a value < 1 is used there is the possibility that the range can
overlap sector 0. The user should use smaller units instead. 0 is a
special case and is still allowed.

* libparted/unit.c (ped_unit_parse_custom): Throw error if a value
between 0 and 1 is used.
libparted/unit.c