fdisk: do not open device twice. Complain on fdisk -l /dev/bogus.
[oweals/busybox.git] / util-linux / fdisk_aix.c
index 0b9fa2be950a2732739c78f5ec8770b33544e471..83be8a8f985e19147bbb4da48cf3ef6955fe1d90 100644 (file)
@@ -62,7 +62,7 @@ check_aix_label(void)
        }
        aix_other_endian = (aixlabel->magic == AIX_LABEL_MAGIC_SWAPPED);
        update_units();
-       current_label_type = label_aix;
+       current_label_type = LABEL_AIX;
        g_partitions = 1016;
        aix_volumes = 15;
        aix_info();