summaryrefslogtreecommitdiffstats
path: root/usr.sbin/sysinstall/ftp.c
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>1997-01-15 06:30:50 +0000
committerjkh <jkh@FreeBSD.org>1997-01-15 06:30:50 +0000
commit0a45d47c6d7181202cb56c9f539c4c9d7d7f9db9 (patch)
tree29e7b8dbd6d713f6ae21cbd62c9ecfa9c1abbf3e /usr.sbin/sysinstall/ftp.c
parent754b3824315ef8a747c71d481aa623198b4a86e5 (diff)
downloadFreeBSD-src-0a45d47c6d7181202cb56c9f539c4c9d7d7f9db9.zip
FreeBSD-src-0a45d47c6d7181202cb56c9f539c4c9d7d7f9db9.tar.gz
Make the FTP installation codepath a lot more defensive. Trap
bogus path and FTP I/O errors much earlier, offer retry possibilities at steps along the way so you don't have to resume from the very beginning again on a hard error.
Diffstat (limited to 'usr.sbin/sysinstall/ftp.c')
-rw-r--r--usr.sbin/sysinstall/ftp.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.sbin/sysinstall/ftp.c b/usr.sbin/sysinstall/ftp.c
index 7746da7..f1e4304 100644
--- a/usr.sbin/sysinstall/ftp.c
+++ b/usr.sbin/sysinstall/ftp.c
@@ -102,7 +102,10 @@ try:
ftpBinary(OpenConn);
if (dir && *dir != '\0') {
if ((i = ftpChdir(OpenConn, dir)) != 0) {
- msgDebug("Attempt to chdir to distribution in %s returns error code %d\n", dir, i);
+ if (i == 550)
+ msgConfirm("No such directory %s, please check your path and try again.", dir);
+ else
+ msgConfirm("FTP chdir to directory %s returned FTP error status %d\n", dir, i);
goto punt;
}
}
OpenPOWER on IntegriCloud