summaryrefslogtreecommitdiffstats
path: root/usr.sbin/sysinstall/dist.c
diff options
context:
space:
mode:
authordcs <dcs@FreeBSD.org>2000-02-17 17:59:41 +0000
committerdcs <dcs@FreeBSD.org>2000-02-17 17:59:41 +0000
commitd7cc86703addd25740b7f34e29d45ffdfa11947c (patch)
tree4376ae40ce87217cecc34ef67d07082a292a14e0 /usr.sbin/sysinstall/dist.c
parent3443796a040f6ad790564bd17802aef17cf22842 (diff)
downloadFreeBSD-src-d7cc86703addd25740b7f34e29d45ffdfa11947c.zip
FreeBSD-src-d7cc86703addd25740b7f34e29d45ffdfa11947c.tar.gz
If no distribution file is found, abort the installation. Previous
behavior silently ignored the problem. This affects installations from a filesystem, and possible other types of media. Approved by: jkh
Diffstat (limited to 'usr.sbin/sysinstall/dist.c')
-rw-r--r--usr.sbin/sysinstall/dist.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.sbin/sysinstall/dist.c b/usr.sbin/sysinstall/dist.c
index f54a2de..85b64ac 100644
--- a/usr.sbin/sysinstall/dist.c
+++ b/usr.sbin/sysinstall/dist.c
@@ -700,8 +700,10 @@ distExtract(char *parent, Distribution *me)
fclose(fp);
goto done;
}
- else
- numchunks = 0;
+ else {
+ status = FALSE;
+ goto done;
+ }
}
/* Fall through from "we got the attribute file, now get the pieces" step */
OpenPOWER on IntegriCloud