Module Name: src
Committed By: martin
Date: Mon Jun 20 18:06:28 UTC 2022
Modified Files:
src/usr.sbin/sysinst: disks.c
Log Message:
When the user aborts the target disk selection menu, return to the
main loop immediately.
To generate a diff of this commit:
cvs rdiff -u -r1.84 -r1.85 src/usr.sbin/sysinst/disks.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/disks.c
diff -u src/usr.sbin/sysinst/disks.c:1.84 src/usr.sbin/sysinst/disks.c:1.85
--- src/usr.sbin/sysinst/disks.c:1.84 Sun Jun 19 12:08:31 2022
+++ src/usr.sbin/sysinst/disks.c Mon Jun 20 18:06:28 2022
@@ -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 @@ find_disks(const char *doingwhat, bool a
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) {