Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. =================================================================== RCS file: /ftp/cvs/cvsroot/src/distrib/utils/sysinst/Attic/mbr.c,v rcsdiff: /ftp/cvs/cvsroot/src/distrib/utils/sysinst/Attic/mbr.c,v: warning: Unknown phrases like `commitid ...;' are present. retrieving revision 1.25 retrieving revision 1.25.2.1 diff -u -p -r1.25 -r1.25.2.1 --- src/distrib/utils/sysinst/Attic/mbr.c 2000/12/22 10:12:13 1.25 +++ src/distrib/utils/sysinst/Attic/mbr.c 2002/08/02 10:44:39 1.25.2.1 @@ -1,4 +1,4 @@ -/* $NetBSD: mbr.c,v 1.25 2000/12/22 10:12:13 mrg Exp $ */ +/* $NetBSD: mbr.c,v 1.25.2.1 2002/08/02 10:44:39 lukem Exp $ */ /* * Copyright 1997 Piermont Information Systems Inc. @@ -426,6 +426,10 @@ read_mbr(disk, buf, len) le_to_native32(mbrp[i].mbrp_start); mbrp[i].mbrp_size = le_to_native32(mbrp[i].mbrp_size); + } else { + /* type is unused, discard scum */ + mbrp[i].mbrp_start = 0; + mbrp[i].mbrp_size = 0; } } }