summaryrefslogtreecommitdiffstats
path: root/release
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>1995-05-28 07:05:21 +0000
committerphk <phk@FreeBSD.org>1995-05-28 07:05:21 +0000
commit999c6a51c7078e03e84931e2a6d161131dba9ff1 (patch)
treecec8256af67706debb945e68ca58a185e1671691 /release
parent1972cc16073779929198e1e5a755921000e62672 (diff)
downloadFreeBSD-src-999c6a51c7078e03e84931e2a6d161131dba9ff1.zip
FreeBSD-src-999c6a51c7078e03e84931e2a6d161131dba9ff1.tar.gz
cdrom.c: try "cdrom/%s" then "cdrom/dists/%s"
dist.c: fix an error message to make more sense.
Diffstat (limited to 'release')
-rw-r--r--release/sysinstall/cdrom.c5
-rw-r--r--release/sysinstall/dist.c4
2 files changed, 6 insertions, 3 deletions
diff --git a/release/sysinstall/cdrom.c b/release/sysinstall/cdrom.c
index 86f8afc..63831c0 100644
--- a/release/sysinstall/cdrom.c
+++ b/release/sysinstall/cdrom.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: cdrom.c,v 1.2 1995/05/27 23:39:26 phk Exp $
+ * $Id: cdrom.c,v 1.3 1995/05/28 03:04:46 jkh Exp $
*
* Copyright (c) 1995
* Jordan Hubbard. All rights reserved.
@@ -105,6 +105,9 @@ mediaGetCDROM(char *file)
char buf[PATH_MAX];
snprintf(buf, PATH_MAX, "/cdrom/%s", file);
+ if (!access(buf,R_OK))
+ return open(buf, O_RDONLY);
+ snprintf(buf, PATH_MAX, "/cdrom/dists/%s", file);
return open(buf, O_RDONLY);
}
diff --git a/release/sysinstall/dist.c b/release/sysinstall/dist.c
index f1e0cae..a33e9a6 100644
--- a/release/sysinstall/dist.c
+++ b/release/sysinstall/dist.c
@@ -4,7 +4,7 @@
* This is probably the last program in the `sysinstall' line - the next
* generation being essentially a complete rewrite.
*
- * $Id: dist.c,v 1.27 1995/05/27 23:39:27 phk Exp $
+ * $Id: dist.c,v 1.28 1995/05/28 03:04:49 jkh Exp $
*
* Copyright (c) 1995
* Jordan Hubbard. All rights reserved.
@@ -303,7 +303,7 @@ distExtract(char *parent, Distribution *me)
snprintf(buf, 512, "%s%s.%c%c", path, dist, (chunk / 26) + 'a', (chunk % 26) + 'a');
fd = (*mediaDevice->get)(buf);
if (fd < 0) {
- msgConfirm("FtpGet failed to retreive piece `%s' in the %s distribution!\nAborting the transfer", chunk, dist);
+ msgConfirm("failed to retreive piece file %s!\nAborting the transfer", buf);
goto punt;
}
while ((n = read(fd, buf, sizeof buf)) > 0) {
OpenPOWER on IntegriCloud