diff options
author | Marc Espie <espie@cvs.openbsd.org> | 1999-08-30 20:27:46 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 1999-08-30 20:27:46 +0000 |
commit | c323cfe2371f4f8dc73c01f764af0fec8ea15bf8 (patch) | |
tree | bd8ce4bd6bdfebc1adcca4bd4f0abbff8a316cf7 | |
parent | b062e2976f7ca4eceab159c5aeb717b36282e1b1 (diff) |
Cater to Win95 brokenness (from netbsd)
-rw-r--r-- | sbin/fsck_msdos/boot.c | 17 |
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; } |