Source-Changes-HG archive

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

[src/trunk]: src/usr.sbin/sysinst Whenever offering "current system" as targe...



details:   https://anonhg.NetBSD.org/src/rev/2fc8fd81992b
branches:  trunk
changeset: 457919:2fc8fd81992b
user:      martin <martin%NetBSD.org@localhost>
date:      Wed Jul 24 14:35:02 2019 +0000

description:
Whenever offering "current system" as target, also offer the last disk
we found (not one less - oops).

diffstat:

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

diffs (18 lines):

diff -r 9f88aeaaf1d1 -r 2fc8fd81992b usr.sbin/sysinst/disks.c
--- a/usr.sbin/sysinst/disks.c  Wed Jul 24 14:25:56 2019 +0000
+++ b/usr.sbin/sysinst/disks.c  Wed Jul 24 14:35:02 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: disks.c,v 1.42 2019/07/24 02:38:29 msaitoh Exp $ */
+/*     $NetBSD: disks.c,v 1.43 2019/07/24 14:35:02 martin Exp $ */
 
 /*
  * Copyright 1997 Piermont Information Systems Inc.
@@ -825,7 +825,7 @@
                                dsk_menu[i].opt_action = set_menu_select;
                                i++;
                        }
-                       for (; i < numdisks; i++) {
+                       for (; i < numdisks+allow_cur_system; i++) {
                                dsk_menu[i].opt_name =
                                    disks[i-allow_cur_system].dd_descr;
                                dsk_menu[i].opt_flags = OPT_EXIT;



Home | Main Index | Thread Index | Old Index