Source-Changes-HG archive

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

[src/trunk]: src/usr.sbin/sysinst Gracefully get out of extended partitioning...



details:   https://anonhg.NetBSD.org/src/rev/24423577b393
branches:  trunk
changeset: 457974:24423577b393
user:      martin <martin%NetBSD.org@localhost>
date:      Thu Jul 25 19:01:08 2019 +0000

description:
Gracefully get out of extended partitioning if the user did not create
any partitions at all.

diffstat:

 usr.sbin/sysinst/partman.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r f1081d487ca5 -r 24423577b393 usr.sbin/sysinst/partman.c
--- a/usr.sbin/sysinst/partman.c        Thu Jul 25 18:55:40 2019 +0000
+++ b/usr.sbin/sysinst/partman.c        Thu Jul 25 19:01:08 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: partman.c,v 1.40 2019/07/23 18:13:40 martin Exp $ */
+/*     $NetBSD: partman.c,v 1.41 2019/07/25 19:01:08 martin Exp $ */
 
 /*
  * Copyright 2012 Eugene Lozovoy
@@ -3019,7 +3019,7 @@
                        free_menu(menu_no);
                }
 
-               if (args[0].retvalue == 0) {
+               if (args[0].retvalue == 0 && pm->parts != NULL) {
                        struct install_partition_desc install;
 
                        install_desc_from_parts(&install, pm->parts);



Home | Main Index | Thread Index | Old Index