diff options
Diffstat (limited to 'usr.sbin/sysinstall/ufs.c')
-rw-r--r-- | usr.sbin/sysinstall/ufs.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/usr.sbin/sysinstall/ufs.c b/usr.sbin/sysinstall/ufs.c index 9a70070..9bbea03 100644 --- a/usr.sbin/sysinstall/ufs.c +++ b/usr.sbin/sysinstall/ufs.c @@ -4,7 +4,7 @@ * This is probably the last attempt in the `sysinstall' line, the next * generation being slated to essentially a complete rewrite. * - * $Id: ufs.c,v 1.8 1996/04/13 13:32:14 jkh Exp $ + * $Id: ufs.c,v 1.9 1996/08/23 07:56:01 jkh Exp $ * * Copyright (c) 1995 * Jordan Hubbard. All rights reserved. @@ -42,7 +42,7 @@ /* No init or shutdown routines necessary - all done in mediaSetUFS() */ -int +FILE * mediaGetUFS(Device *dev, char *file, Boolean probe) { char buf[PATH_MAX]; @@ -51,13 +51,13 @@ mediaGetUFS(Device *dev, char *file, Boolean probe) msgDebug("Request for %s from UFS\n", file); snprintf(buf, PATH_MAX, "%s/%s", dev->private, file); if (file_readable(buf)) - return open(buf, O_RDONLY); + return fopen(buf, "r"); snprintf(buf, PATH_MAX, "%s/dists/%s", dev->private, file); if (file_readable(buf)) - return open(buf, O_RDONLY); + return fopen(buf, "r"); snprintf(buf, PATH_MAX, "%s/%s/%s", dev->private, variable_get(VAR_RELNAME), file); if (file_readable(buf)) - return open(buf, O_RDONLY); + return fopen(buf, "r"); snprintf(buf, PATH_MAX, "%s/%s/dists/%s", dev->private, variable_get(VAR_RELNAME), file); - return open(buf, O_RDONLY); + return fopen(buf, "r"); } |