Module Name:    src
Committed By:   martin
Date:           Sun Jan  5 12:52:39 UTC 2014

Modified Files:
        src/sbin/newfs_msdos: mkfs_msdos.c

Log Message:
PR bin/46743: mark the "next free cluster" value in the file system
info block as unitialized.


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/sbin/newfs_msdos/mkfs_msdos.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sbin/newfs_msdos/mkfs_msdos.c
diff -u src/sbin/newfs_msdos/mkfs_msdos.c:1.8 src/sbin/newfs_msdos/mkfs_msdos.c:1.9
--- src/sbin/newfs_msdos/mkfs_msdos.c:1.8	Sat Oct 19 01:09:59 2013
+++ src/sbin/newfs_msdos/mkfs_msdos.c	Sun Jan  5 12:52:39 2014
@@ -1,4 +1,4 @@
-/*	$NetBSD: mkfs_msdos.c,v 1.8 2013/10/19 01:09:59 christos Exp $	*/
+/*	$NetBSD: mkfs_msdos.c,v 1.9 2014/01/05 12:52:39 martin Exp $	*/
 
 /*
  * Copyright (c) 1998 Robert Nordier
@@ -37,7 +37,7 @@
 static const char rcsid[] =
   "$FreeBSD: src/sbin/newfs_msdos/newfs_msdos.c,v 1.15 2000/10/10 01:49:37 wollman Exp $";
 #else
-__RCSID("$NetBSD: mkfs_msdos.c,v 1.8 2013/10/19 01:09:59 christos Exp $");
+__RCSID("$NetBSD: mkfs_msdos.c,v 1.9 2014/01/05 12:52:39 martin Exp $");
 #endif
 #endif /* not lint */
 
@@ -709,7 +709,7 @@ mkfs_msdos(const char *fname, const char
 		mk4(img, 0x41615252);
 		mk4(img + MINBPS - 28, 0x61417272);
 		mk4(img + MINBPS - 24, 0xffffffff);
-		mk4(img + MINBPS - 20, bpb.rdcl);
+		mk4(img + MINBPS - 20, 0xffffffff);
 		mk2(img + MINBPS - 2, DOSMAGIC);
 	    } else if (lsn >= bpb.res && lsn < dir &&
 		       !((lsn - bpb.res) %

Reply via email to