From 3813eb5ead1abedca7fea27b1f4275162b0d7e9b Mon Sep 17 00:00:00 2001 From: Davidlohr Bueso Date: Mon, 23 Apr 2012 12:55:52 +0200 Subject: 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 --- fdisk/fdisk.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'fdisk/fdisk.c') diff --git a/fdisk/fdisk.c b/fdisk/fdisk.c index 337e5f7e6..100b1971d 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(); -- cgit v1.2.3-55-g7522