summaryrefslogtreecommitdiffstats
path: root/usr.sbin/sysinstall/ftp.c
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>1998-12-22 12:31:26 +0000
committerjkh <jkh@FreeBSD.org>1998-12-22 12:31:26 +0000
commite72da228343024d66a2d2be92429e6bfec4f6fa1 (patch)
tree705855b9e9773f3964f64d41928812ef61a6c9f4 /usr.sbin/sysinstall/ftp.c
parent91bd0e66beb40a53efaf61eaad295aaf08f1384f (diff)
downloadFreeBSD-src-e72da228343024d66a2d2be92429e6bfec4f6fa1.zip
FreeBSD-src-e72da228343024d66a2d2be92429e6bfec4f6fa1.tar.gz
Collapse the "get" code substantially by combining common functions.
Also make mountpoint for each media type easier to change. Also reshuffled some menus for easier usage.
Diffstat (limited to 'usr.sbin/sysinstall/ftp.c')
-rw-r--r--usr.sbin/sysinstall/ftp.c12
1 files changed, 3 insertions, 9 deletions
diff --git a/usr.sbin/sysinstall/ftp.c b/usr.sbin/sysinstall/ftp.c
index f6d6bc7..4f1e542 100644
--- a/usr.sbin/sysinstall/ftp.c
+++ b/usr.sbin/sysinstall/ftp.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: ftp.c,v 1.34 1997/10/03 14:00:09 jkh Exp $
+ * $Id: ftp.c,v 1.35 1998/01/28 04:42:38 jkh Exp $
*
* Copyright (c) 1995
* Jordan Hubbard. All rights reserved.
@@ -80,9 +80,6 @@ mediaInitFTP(Device *dev)
if (ftpInitted)
return TRUE;
- if (isDebug())
- msgDebug("Init routine for FTP called.\n");
-
if (OpenConn) {
fclose(OpenConn);
OpenConn = NULL;
@@ -167,8 +164,6 @@ try:
else
goto punt;
}
- if (isDebug())
- msgDebug("mediaInitFTP was successful (logged in and chdir'd)\n");
ftpInitted = TRUE;
return TRUE;
@@ -221,7 +216,7 @@ mediaGetFTP(Device *dev, char *file, Boolean probe)
/* Try some alternatives */
switch (nretries++) {
case 1:
- sprintf(buf, "dists/%s", file);
+ sprintf(buf, "releases/%s", file);
try = buf;
break;
@@ -231,7 +226,7 @@ mediaGetFTP(Device *dev, char *file, Boolean probe)
break;
case 3:
- sprintf(buf, "%s/dists/%s", variable_get(VAR_RELNAME), file);
+ sprintf(buf, "%s/releases/%s", variable_get(VAR_RELNAME), file);
try = buf;
break;
@@ -250,7 +245,6 @@ mediaShutdownFTP(Device *dev)
if (!ftpInitted)
return;
- msgDebug("FTP shutdown called. OpenConn = %x\n", OpenConn);
if (OpenConn != NULL) {
fclose(OpenConn);
OpenConn = NULL;
OpenPOWER on IntegriCloud