summaryrefslogtreecommitdiffstats
path: root/release
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>1996-10-03 08:17:16 +0000
committerjkh <jkh@FreeBSD.org>1996-10-03 08:17:16 +0000
commit7b9bca9cdf7491422b37b673e65cecf73da27d2f (patch)
treed32cdaa2cbe15564500a3176e236800ae0e46a1e /release
parent084126c610cdae6d9938451d14c4d5871a66a946 (diff)
downloadFreeBSD-src-7b9bca9cdf7491422b37b673e65cecf73da27d2f.zip
FreeBSD-src-7b9bca9cdf7491422b37b673e65cecf73da27d2f.tar.gz
Check return values from uc_open() correctly. Note: This seems to work
really well when running the GENERIC kernel but not with the BOOTMFS kernel. Further work is needed.
Diffstat (limited to 'release')
-rw-r--r--release/sysinstall/install.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/release/sysinstall/install.c b/release/sysinstall/install.c
index 8b3e5a7..ad29178 100644
--- a/release/sysinstall/install.c
+++ b/release/sysinstall/install.c
@@ -4,7 +4,7 @@
* This is probably the last program in the `sysinstall' line - the next
* generation being essentially a complete rewrite.
*
- * $Id: install.c,v 1.123 1996/10/02 10:44:31 jkh Exp $
+ * $Id: install.c,v 1.124 1996/10/03 06:01:35 jkh Exp $
*
* Copyright (c) 1995
* Jordan Hubbard. All rights reserved.
@@ -915,13 +915,13 @@ save_userconfig_to_kernel(char *kern)
int i, d;
core = uc_open("-incore");
- if (!core) {
+ if (core < 0) {
msgDebug("Can't read in-core information for kernel.\n");
return;
}
boot = uc_open(kern);
- if (!boot) {
+ if (boot < 0) {
msgDebug("Can't read device information for kernel image %s\n", kern);
return;
}
OpenPOWER on IntegriCloud