]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
fdisk: don't print confusing warning on non-partitioned disks
authorKarel Zak <kzak@redhat.com>
Tue, 20 Mar 2012 10:13:28 +0000 (11:13 +0100)
committerKarel Zak <kzak@redhat.com>
Tue, 20 Mar 2012 10:18:54 +0000 (11:18 +0100)
Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=740163
Signed-off-by: Karel Zak <kzak@redhat.com>
fdisk/fdisk.c

index 66c5d18e80856b41493c515463325c1d5064785c..8893a017493991ed1a74279aa73f4477815c12e8 100644 (file)
@@ -2785,10 +2785,8 @@ print_partition_table_from_option(char *device)
                if (gb > 0) { /* I/O error */
                } else if (gb < 0) { /* no DOS signature */
                        list_disk_geometry();
-                       if (disklabel != AIX_LABEL && disklabel != MAC_LABEL && btrydev(device) < 0)
-                               fprintf(stderr,
-                                       _("Disk %s doesn't contain a valid "
-                                         "partition table\n"), device);
+                       if (disklabel != AIX_LABEL && disklabel != MAC_LABEL)
+                               btrydev(device);
                } else {
                        list_table(0);
                }