summaryrefslogtreecommitdiffstats
path: root/usr.sbin/sade
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>2000-10-05 18:02:09 +0000
committerjkh <jkh@FreeBSD.org>2000-10-05 18:02:09 +0000
commit3b757787350ec885417d85dfb81425e5cd7cd8ea (patch)
tree1555dcc35096ba9676a58f3cc1ca73c9f3028027 /usr.sbin/sade
parenta8dcd6dc23039a66257f3103aa9d17a9d98a6700 (diff)
downloadFreeBSD-src-3b757787350ec885417d85dfb81425e5cd7cd8ea.zip
FreeBSD-src-3b757787350ec885417d85dfb81425e5cd7cd8ea.tar.gz
If user selects no distributions at all, assume "User" as
a default. This should prevent people from whacking return at the Distributions menu and getting nothing selected as a result (a minimal "standard" system will at least install). Flagged as big tech support headache by: Chris Shumway <cshumway@osd.bsdi.com>
Diffstat (limited to 'usr.sbin/sade')
-rw-r--r--usr.sbin/sade/install.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/usr.sbin/sade/install.c b/usr.sbin/sade/install.c
index 8c216eb..48ce0c7 100644
--- a/usr.sbin/sade/install.c
+++ b/usr.sbin/sade/install.c
@@ -676,9 +676,12 @@ installCommit(dialogMenuItem *self)
if (!Dists)
distConfig(NULL);
- if (!Dists)
- if (!dmenuOpenSimple(&MenuDistributions, FALSE) && !Dists)
- return DITEM_FAILURE;
+ if (!Dists) {
+ (void)dmenuOpenSimple(&MenuDistributions, FALSE);
+ /* select reasonable defaults if necessary */
+ if (!Dists)
+ Dists = _DIST_USER;
+ }
if (!mediaVerify())
return DITEM_FAILURE;
OpenPOWER on IntegriCloud