Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.sbin/sysinst When adding a new partition in the concrete...
details: https://anonhg.NetBSD.org/src/rev/36da8c98b971
branches: trunk
changeset: 976388:36da8c98b971
user: martin <martin%NetBSD.org@localhost>
date: Tue Sep 22 11:44:44 2020 +0000
description:
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!
diffstat:
usr.sbin/sysinst/label.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (26 lines):
diff -r 08397e9791ec -r 36da8c98b971 usr.sbin/sysinst/label.c
--- a/usr.sbin/sysinst/label.c Tue Sep 22 06:23:33 2020 +0000
+++ b/usr.sbin/sysinst/label.c Tue Sep 22 11:44:44 2020 +0000
@@ -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 @@
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)
Home |
Main Index |
Thread Index |
Old Index