From: Benno Schulenberg Date: Sun, 8 Feb 2015 20:21:28 +0000 (+0100) Subject: cfdisk: do not startle the user with a false message when --zero is used X-Git-Tag: v2.26~43 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5088d642dd71accbf9e6b5c4d7db00058c705b8b;p=thirdparty%2Futil-linux.git cfdisk: do not startle the user with a false message when --zero is used Signed-off-by: Benno Schulenberg --- diff --git a/disk-utils/cfdisk.c b/disk-utils/cfdisk.c index d4e533f034..79bbbd5b16 100644 --- a/disk-utils/cfdisk.c +++ b/disk-utils/cfdisk.c @@ -1774,8 +1774,9 @@ static int ui_create_label(struct cfdisk *cf) } erase(); - ui_center(ui_lines - 4, - _("Device does not contain a recognized partition table.")); + if (!cf->zero_start) + ui_center(ui_lines - 4, + _("Device does not contain a recognized partition table.")); ui_center(ui_lines - 3, _("Select a type to create a new label or press 'L' to load script file."));