cdown / rpms / util-linux

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