]> git.ipfire.org Git - thirdparty/util-linux.git/commit
fdisk: fix menu
authorDavidlohr Bueso <dave@gnu.org>
Thu, 26 Jul 2012 14:16:57 +0000 (16:16 +0200)
committerKarel Zak <kzak@redhat.com>
Thu, 26 Jul 2012 15:25:41 +0000 (17:25 +0200)
commitc0bf8e97ddeeb9fca3ac1b5eca8c1d83edcea91d
treea2cd9c84cda23bbabe341de858207dc3238fad6d
parenta1ec61372cde0c39357ea1760ca3025cfa79f5b4
fdisk: fix menu

Commit 79c8a145ddff98d9c5bc70e67c5a861f67c50484 changed the numerical values of
fdisk_labeltype and broke the menu functionality, mixing main and expert menus.
Revert this change along with the label comment regarding it matching labeltype.

This is no longer valid since the original patch that lead to this modification
assumed that __probe_labels() would use these indices when creating a default
DOS/SUN disklabel, see http://www.spinics.net/lists/util-linux-ng/msg06509.html

Reported-by: Petr Uzel <petr.uzel@suse.cz>
Signed-off-by: Davidlohr Bueso <dave@gnu.org>
fdisks/fdisk.h
fdisks/utils.c