diff options
author | Karel Zak | 2011-01-05 16:50:47 +0100 |
---|---|---|
committer | Karel Zak | 2011-01-05 16:50:47 +0100 |
commit | 8feb31e5329da705e7fc99f7b28a261af8c9e493 (patch) | |
tree | 2a451fe65c88b17bbae6376724f194cdab9daea2 /fdisk/fdiskbsdlabel.c | |
parent | include: add fallback for rpmatch() (diff) | |
download | kernel-qcow2-util-linux-8feb31e5329da705e7fc99f7b28a261af8c9e493.tar.gz kernel-qcow2-util-linux-8feb31e5329da705e7fc99f7b28a261af8c9e493.tar.xz kernel-qcow2-util-linux-8feb31e5329da705e7fc99f7b28a261af8c9e493.zip |
fdisk: re-print prompt after maybe_exit()
after
Do you really want to quit? n
the read_chars() has to re-print the original prompt and ask again
for new input. For example:
Partition number (1-4, default 3): <-- CTRL-D
Do you really want to quit? n
Partition number (1-4, default 3): 3 <-- ask again
First sector (411648-1023999, default 411648):
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'fdisk/fdiskbsdlabel.c')
-rw-r--r-- | fdisk/fdiskbsdlabel.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fdisk/fdiskbsdlabel.c b/fdisk/fdiskbsdlabel.c index 9c0925242..0c3810d47 100644 --- a/fdisk/fdiskbsdlabel.c +++ b/fdisk/fdiskbsdlabel.c @@ -448,7 +448,7 @@ edit_int (int def, char *mesg) do { fputs (mesg, stdout); printf (" (%d): ", def); - if (!read_line ()) + if (!read_line (NULL)) return def; } while (!isdigit (*line_ptr)); @@ -527,7 +527,7 @@ xbsd_write_bootstrap (void) printf (_("Bootstrap: %sboot -> boot%s (%s): "), dkbasename, dkbasename, dkbasename); - if (read_line ()) { + if (read_line (NULL)) { line_ptr[strlen (line_ptr)-1] = '\0'; dkbasename = line_ptr; } |