From: Davidlohr Bueso Date: Mon, 23 Apr 2012 10:55:52 +0000 (+0200) Subject: fdisk: do not call sgi and sun code when creating a new dos label X-Git-Tag: v2.22-rc1~499 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3813eb5ead1abedca7fea27b1f4275162b0d7e9b;p=thirdparty%2Futil-linux.git fdisk: do not call sgi and sun code when creating a new dos label When creating a new DOS label, SGI and SUN pt logic have no business being there. Remove sun/sgi_nolabel(), since the default amount of partitions are previously set to 4 and the sun/sgi magic nums are not used in this context. Signed-off-by: Davidlohr Bueso --- diff --git a/fdisk/fdisk.c b/fdisk/fdisk.c index 337e5f7e6a..100b1971d0 100644 --- a/fdisk/fdisk.c +++ b/fdisk/fdisk.c @@ -838,8 +838,6 @@ create_doslabel(void) { random_get_bytes(&id, sizeof(id)); fprintf(stderr, _("Building a new DOS disklabel with disk identifier 0x%08x.\n"), id); - sun_nolabel(); /* otherwise always recognised as sun */ - sgi_nolabel(); /* otherwise always recognised as sgi */ dos_init(); zeroize_mbr_buffer();