summaryrefslogtreecommitdiff
path: root/release/sysinstall
diff options
context:
space:
mode:
authorJordan K. Hubbard <jkh@FreeBSD.org>1997-10-03 14:00:40 +0000
committerJordan K. Hubbard <jkh@FreeBSD.org>1997-10-03 14:00:40 +0000
commit8c2753539818530e56dd134a67ba606c28f7de9a (patch)
treef5146c16e4473f6cacaf8c90e9692997ac76276a /release/sysinstall
parentfbab7e4d80c1bced53f0958202758107cb90e8dc (diff)
Notes
Diffstat (limited to 'release/sysinstall')
-rw-r--r--release/sysinstall/ftp.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/release/sysinstall/ftp.c b/release/sysinstall/ftp.c
index 5a64c313c0d4..a5f7dd4d0849 100644
--- a/release/sysinstall/ftp.c
+++ b/release/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.18.2.12 1997/02/27 11:48:39 jkh Exp $
+ * $Id: ftp.c,v 1.18.2.13 1997/10/03 03:32:20 jkh Exp $
*
* Copyright (c) 1995
* Jordan Hubbard. All rights reserved.
@@ -197,9 +197,11 @@ mediaGetFTP(Device *dev, char *file, Boolean probe)
try = file;
while ((fp = ftpGet(OpenConn, try, 0)) == NULL) {
+ int ftperr = ftpErrno(OpenConn);
+
/* If a hard fail, try to "bounce" the ftp server to clear it */
- if (ftpErrno(OpenConn) != 550) {
- if (ftpErrno(OpenConn) != 421) /* Timeout? */
+ if (ftperr != 550) {
+ if (ftperr != 421) /* Timeout? */
variable_unset(VAR_FTP_PATH);
/* If we can't re-initialize, just forget it */
dev->shutdown(dev);