dcavalca / rpms / util-linux

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