diff options
| author | Poul-Henning Kamp <phk@FreeBSD.org> | 1995-05-27 23:39:35 +0000 |
|---|---|---|
| committer | Poul-Henning Kamp <phk@FreeBSD.org> | 1995-05-27 23:39:35 +0000 |
| commit | 25fce75ee4645adadc441c4c64a0f6de0158e683 (patch) | |
| tree | 291cad597f17930adf43e6eedc0bc0f9042e1b66 /release/sysinstall/dos.c | |
| parent | bb628eaac63fd9214f2ec49f893abcff2da1a0ec (diff) | |
Notes
Diffstat (limited to 'release/sysinstall/dos.c')
| -rw-r--r-- | release/sysinstall/dos.c | 20 |
1 files changed, 5 insertions, 15 deletions
diff --git a/release/sysinstall/dos.c b/release/sysinstall/dos.c index a8d1a85f785b..d3999c50a891 100644 --- a/release/sysinstall/dos.c +++ b/release/sysinstall/dos.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: media_strategy.c,v 1.28 1995/05/26 20:30:59 jkh Exp $ + * $Id: dos.c,v 1.1 1995/05/27 10:38:47 jkh Exp $ * * Copyright (c) 1995 * Jordan Hubbard. All rights reserved. @@ -49,6 +49,7 @@ #include <sys/param.h> #include <sys/wait.h> #include <unistd.h> +#include <fcntl.h> #include <grp.h> #define MSDOSFS @@ -80,23 +81,12 @@ mediaInitDOS(Device *dev) } int -mediaGetDOS(char *dist, char *path) +mediaGetDOS(char *file) { char buf[PATH_MAX]; - Attribs *dist_attr = NULL; - int retval; - dist_attr = safe_malloc(sizeof(Attribs) * MAX_ATTRIBS); - snprintf(buf, PATH_MAX, "/stand/info/%s.inf", dist); - if (!access(buf, R_OK) && attr_parse(&dist_attr, buf) == 0) { - msgConfirm("Cannot load information file for %s distribution!\nPlease verify that your media is valid and try again.", dist); - free(dist_attr); - return FALSE; - } - snprintf(buf, PATH_MAX, "/dos/%s%s", path ? path : "", dist); - retval = genericGetDist(buf, dist_attr, FALSE); - free(dist_attr); - return retval; + snprintf(buf, PATH_MAX, "/dos/%s", file); + return open(buf,O_RDONLY); } void |
