sfdisk: fix y/n mismatch

Signed-off-by: Karel Zak <kzak@redhat.com>
This commit is contained in:
Karel Zak 2013-09-17 09:46:24 +02:00
parent ffcf054041
commit 44a6492ce3
1 changed files with 2 additions and 2 deletions

View File

@ -3158,9 +3158,9 @@ do_fdisk(char *dev) {
ignore_result( fgets(answer, sizeof(answer), stdin) );
if (answer[0] == 'q' || answer[0] == 'Q') {
errx(EXIT_FAILURE, _("Quitting - nothing changed"));
} else if (rpmatch(answer) == 1) {
continue;
} else if (rpmatch(answer) == 0) {
continue;
} else if (rpmatch(answer) == 1) {
break;
} else {
printf(_("Please answer one of y,n,q\n"));