]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
cfdisk: do not startle the user with a false message when --zero is used
authorBenno Schulenberg <bensberg@justemail.net>
Sun, 8 Feb 2015 20:21:28 +0000 (21:21 +0100)
committerKarel Zak <kzak@redhat.com>
Tue, 10 Feb 2015 11:23:15 +0000 (12:23 +0100)
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
disk-utils/cfdisk.c

index d4e533f034f54bbabde4859753d523cd75154125..79bbbd5b16f635ac2254dccc423a8b53c5648658 100644 (file)
@@ -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."));