Index: mtools-4.0.33-1+really4.0.32/remap.c
===================================================================
--- mtools-4.0.33-1+really4.0.32.orig/remap.c
+++ mtools-4.0.33-1+really4.0.32/remap.c
@@ -91,7 +91,7 @@ static ssize_t remap_write(Stream_t *Str
 		for(i=0; i<len; i++) {
 			if(buf[i]) {
 				fprintf(stderr, "Bad data written to unmapped sectors\n");
-				errno = EBADR;
+				errno = EFAULT;
 				return -1;
 			}
 		}
