diff options
author | jkh <jkh@FreeBSD.org> | 1996-10-03 08:17:16 +0000 |
---|---|---|
committer | jkh <jkh@FreeBSD.org> | 1996-10-03 08:17:16 +0000 |
commit | 7b9bca9cdf7491422b37b673e65cecf73da27d2f (patch) | |
tree | d32cdaa2cbe15564500a3176e236800ae0e46a1e /release | |
parent | 084126c610cdae6d9938451d14c4d5871a66a946 (diff) | |
download | FreeBSD-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.c | 6 |
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; } |