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 the user aborts the target disk select...



details:   https://anonhg.NetBSD.org/src/rev/52555fe17e26
branches:  trunk
changeset: 367265:52555fe17e26
user:      martin <martin%NetBSD.org@localhost>
date:      Mon Jun 20 18:06:28 2022 +0000

description:
When the user aborts the target disk selection menu, return to the
main loop immediately.

diffstat:

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

diffs (18 lines):

diff -r fa5bf68e4549 -r 52555fe17e26 usr.sbin/sysinst/disks.c
--- a/usr.sbin/sysinst/disks.c  Mon Jun 20 16:06:38 2022 +0000
+++ b/usr.sbin/sysinst/disks.c  Mon Jun 20 18:06:28 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: disks.c,v 1.84 2022/06/19 12:08:31 martin Exp $ */
+/*     $NetBSD: disks.c,v 1.85 2022/06/20 18:06:28 martin Exp $ */
 
 /*
  * Copyright 1997 Piermont Information Systems Inc.
@@ -982,6 +982,8 @@
                                msg_fmt_display(MSG_ask_disk, "%s", doingwhat);
                                i = -1;
                                process_menu(menu_no, &i);
+                               if (i == -1)
+                                       return -1;
                                if (disk_no[i] == -2) {
                                        /* do wedges menu */
                                        if (w_menu_no == -1) {



Home | Main Index | Thread Index | Old Index