Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sbin/newfs_msdos PR bin/46743: mark the "next free cluster" ...



details:   https://anonhg.NetBSD.org/src/rev/1283d4ac46ac
branches:  trunk
changeset: 325750:1283d4ac46ac
user:      martin <martin%NetBSD.org@localhost>
date:      Sun Jan 05 12:52:39 2014 +0000

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

diffstat:

 sbin/newfs_msdos/mkfs_msdos.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 84bdee6f3414 -r 1283d4ac46ac sbin/newfs_msdos/mkfs_msdos.c
--- a/sbin/newfs_msdos/mkfs_msdos.c     Sun Jan 05 09:13:18 2014 +0000
+++ b/sbin/newfs_msdos/mkfs_msdos.c     Sun Jan 05 12:52:39 2014 +0000
@@ -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 @@
                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) %



Home | Main Index | Thread Index | Old Index