--- mtd-20050122.orig/util/nanddump.c~	2004-12-03 00:00:10.000000000 +0100
+++ mtd-20050122.orig/util/nanddump.c	2005-12-27 00:32:20.000000000 +0100
@@ -219,7 +219,7 @@
 			}
 		}
 
-		if (badblock) {
+		if (badblock && !ignoreerrors) {
 			memset (readbuf, 0xff, bs);
 		} else {
 			/* Read page data and exit on failure */
@@ -252,7 +252,7 @@
 		if (omitoob)
 			continue;
 			
-		if (badblock) {
+		if (badblock && !ignoreerrors) {
 			memset (readbuf, 0xff, meminfo.oobsize);
 		} else {
 			/* Read OOB data and exit on failure */
