dcavalca / rpms / util-linux

Forked from rpms/util-linux 2 years ago
Clone
6717ab
diff -up util-linux-2.23.2/fdisks/sfdisk.c.kzak util-linux-2.23.2/fdisks/sfdisk.c
6717ab
--- util-linux-2.23.2/fdisks/sfdisk.c.kzak	2013-07-30 10:39:26.200738180 +0200
6717ab
+++ util-linux-2.23.2/fdisks/sfdisk.c	2013-10-07 11:52:10.701445115 +0200
6717ab
@@ -3201,9 +3201,9 @@ do_fdisk(char *dev) {
6717ab
 	    ignore_result( fgets(answer, sizeof(answer), stdin) );
6717ab
 	    if (answer[0] == 'q' || answer[0] == 'Q') {
6717ab
 		errx(EXIT_FAILURE, _("Quitting - nothing changed"));
6717ab
-	    } else if (rpmatch(answer) == 1) {
6717ab
-		continue;
6717ab
 	    } else if (rpmatch(answer) == 0) {
6717ab
+		continue;
6717ab
+	    } else if (rpmatch(answer) == 1) {
6717ab
 		break;
6717ab
 	    } else {
6717ab
 		printf(_("Please answer one of y,n,q\n"));