summaryrefslogtreecommitdiff
path: root/sbin/fsck_msdos
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>1999-08-30 20:27:46 +0000
committerMarc Espie <espie@cvs.openbsd.org>1999-08-30 20:27:46 +0000
commitc323cfe2371f4f8dc73c01f764af0fec8ea15bf8 (patch)
treebd8ce4bd6bdfebc1adcca4bd4f0abbff8a316cf7 /sbin/fsck_msdos
parentb062e2976f7ca4eceab159c5aeb717b36282e1b1 (diff)
Cater to Win95 brokenness (from netbsd)
Diffstat (limited to 'sbin/fsck_msdos')
-rw-r--r--sbin/fsck_msdos/boot.c17
1 files changed, 14 insertions, 3 deletions
diff --git a/sbin/fsck_msdos/boot.c b/sbin/fsck_msdos/boot.c
index b160fbfea39..2bffd013512 100644
--- a/sbin/fsck_msdos/boot.c
+++ b/sbin/fsck_msdos/boot.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: boot.c,v 1.4 1998/01/11 20:40:28 provos Exp $ */
+/* $OpenBSD: boot.c,v 1.5 1999/08/30 20:27:45 espie Exp $ */
/* $NetBSD: boot.c,v 1.5 1997/10/17 11:19:23 ws Exp $ */
/*
@@ -35,7 +35,7 @@
#ifndef lint
-static char rcsid[] = "$OpenBSD: boot.c,v 1.4 1998/01/11 20:40:28 provos Exp $";
+static char rcsid[] = "$OpenBSD: boot.c,v 1.5 1999/08/30 20:27:45 espie Exp $";
#endif /* not lint */
#include <stdlib.h>
@@ -252,5 +252,16 @@ writefsinfo(dosfs, boot)
perror("Unable to write FSInfo");
return FSFATAL;
}
- return FSBOOTMOD;
+ /*
+ * Technically, we should return FSBOOTMOD here.
+ *
+ * However, since Win95 OSR2 (the first M$ OS that has
+ * support for FAT32) doesn't maintain the FSINFO block
+ * correctly, it has to be fixed pretty often.
+ *
+ * Therefor, we handle the FSINFO block only informally,
+ * fixing it if neccessary, but otherwise ignoring the
+ * fact that it was incorrect.
+ */
+ return 0;
}