Module Name: src Committed By: martin Date: Tue Sep 22 11:44:44 UTC 2020
Modified Files: src/usr.sbin/sysinst: label.c Log Message: When adding a new partition in the concrete partition editor, make sure to set a pointer to the partition table interface in the new entry. Otherwise we may end up not writing back the partitions at all, leading to further fallout later. Receipe to reproduce the issue from Frederic Fauberteau, thanks! To generate a diff of this commit: cvs rdiff -u -r1.21 -r1.22 src/usr.sbin/sysinst/label.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/label.c diff -u src/usr.sbin/sysinst/label.c:1.21 src/usr.sbin/sysinst/label.c:1.22 --- src/usr.sbin/sysinst/label.c:1.21 Fri Aug 14 08:46:54 2020 +++ src/usr.sbin/sysinst/label.c Tue Sep 22 11:44:44 2020 @@ -1,4 +1,4 @@ -/* $NetBSD: label.c,v 1.21 2020/08/14 08:46:54 martin Exp $ */ +/* $NetBSD: label.c,v 1.22 2020/09/22 11:44:44 martin Exp $ */ /* * Copyright 1997 Jonathan Stone @@ -36,7 +36,7 @@ #include <sys/cdefs.h> #if defined(LIBC_SCCS) && !defined(lint) -__RCSID("$NetBSD: label.c,v 1.21 2020/08/14 08:46:54 martin Exp $"); +__RCSID("$NetBSD: label.c,v 1.22 2020/09/22 11:44:44 martin Exp $"); #endif #include <sys/types.h> @@ -835,6 +835,7 @@ edit_ptn(menudesc *menu, void *arg) if (edit.rv == 0) { /* OK, set new data */ edit.info.last_mounted = edit.wanted->mount; if (is_new_part) { + edit.wanted->parts = pset->parts; edit.wanted->cur_part_id = pset->parts->pscheme-> add_partition(pset->parts, &edit.info, &err); if (edit.wanted->cur_part_id == NO_PART)