From: Karel Zak Date: Tue, 20 Mar 2012 10:13:28 +0000 (+0100) Subject: fdisk: don't print confusing warning on non-partitioned disks X-Git-Tag: v2.22-rc1~636 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=96f3eef55e6dab4249eee4e57fba2bccb373c866;p=thirdparty%2Futil-linux.git fdisk: don't print confusing warning on non-partitioned disks Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=740163 Signed-off-by: Karel Zak --- diff --git a/fdisk/fdisk.c b/fdisk/fdisk.c index 66c5d18e80..8893a01749 100644 --- a/fdisk/fdisk.c +++ b/fdisk/fdisk.c @@ -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); }