]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
fdisk: do not call sgi and sun code when creating a new dos label
authorDavidlohr Bueso <dave@gnu.org>
Mon, 23 Apr 2012 10:55:52 +0000 (12:55 +0200)
committerKarel Zak <kzak@redhat.com>
Mon, 23 Apr 2012 10:55:52 +0000 (12:55 +0200)
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 <dave@gnu.org>
fdisk/fdisk.c

index 337e5f7e6a742ce501b4aa35dc7aaa8e858835cc..100b1971d05f7550be8f974da879e69abb618aba 100644 (file)
@@ -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();