dcavalca / rpms / util-linux

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