Module Name:    src
Committed By:   martin
Date:           Sun Dec  8 15:09:33 UTC 2019

Modified Files:
        src/usr.sbin/sysinst: bsddisklabel.c

Log Message:
PR install/54745: fix confusion about absolut and NetBSD-partition
relative offsets.


To generate a diff of this commit:
cvs rdiff -u -r1.31 -r1.32 src/usr.sbin/sysinst/bsddisklabel.c

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

Modified files:

Index: src/usr.sbin/sysinst/bsddisklabel.c
diff -u src/usr.sbin/sysinst/bsddisklabel.c:1.31 src/usr.sbin/sysinst/bsddisklabel.c:1.32
--- src/usr.sbin/sysinst/bsddisklabel.c:1.31	Wed Nov 13 18:57:26 2019
+++ src/usr.sbin/sysinst/bsddisklabel.c	Sun Dec  8 15:09:33 2019
@@ -1,4 +1,4 @@
-/*	$NetBSD: bsddisklabel.c,v 1.31 2019/11/13 18:57:26 martin Exp $	*/
+/*	$NetBSD: bsddisklabel.c,v 1.32 2019/12/08 15:09:33 martin Exp $	*/
 
 /*
  * Copyright 1997 Piermont Information Systems Inc.
@@ -1342,7 +1342,8 @@ apply_settings_to_partitions(struct pm_d
 	/*
 	 * Now add new inner partitions (and cloned partitions)
 	 */
-	for (i = 0; i < wanted->num && from < wanted->parts->disk_size; i++) {
+	for (i = 0; i < wanted->num && from < 
+	    (wanted->parts->disk_size + wanted->parts->disk_start); i++) {
 		struct part_usage_info *want = &wanted->infos[i];
 
 		if (want->cur_part_id != NO_PART)

Reply via email to