Source-Changes-HG archive

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

[src/trunk]: src/distrib/utils/sysinst fix PR#11945 Tyler Retzlaff <rtr@wasab...



details:   https://anonhg.NetBSD.org/src/rev/09877e4733aa
branches:  trunk
changeset: 534732:09877e4733aa
user:      mrg <mrg%NetBSD.org@localhost>
date:      Fri Aug 02 05:38:18 2002 +0000

description:
fix PR#11945 Tyler Retzlaff <rtr%wasabisystems.com@localhost>:
>The reason this occurs is because of left over scum in unused partition
>table slots for host system parts.  This should clean it up.

diffstat:

 distrib/utils/sysinst/mbr.c |  6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diffs (20 lines):

diff -r 5ad3c45ce8d4 -r 09877e4733aa distrib/utils/sysinst/mbr.c
--- a/distrib/utils/sysinst/mbr.c       Fri Aug 02 05:26:44 2002 +0000
+++ b/distrib/utils/sysinst/mbr.c       Fri Aug 02 05:38:18 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mbr.c,v 1.25 2000/12/22 10:12:13 mrg Exp $ */
+/*     $NetBSD: mbr.c,v 1.26 2002/08/02 05:38:18 mrg Exp $ */
 
 /*
  * Copyright 1997 Piermont Information Systems Inc.
@@ -426,6 +426,10 @@
                                    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;
                        }
                }
        }



Home | Main Index | Thread Index | Old Index