diff options
author | jkh <jkh@FreeBSD.org> | 1997-01-15 06:30:50 +0000 |
---|---|---|
committer | jkh <jkh@FreeBSD.org> | 1997-01-15 06:30:50 +0000 |
commit | 0a45d47c6d7181202cb56c9f539c4c9d7d7f9db9 (patch) | |
tree | 29e7b8dbd6d713f6ae21cbd62c9ecfa9c1abbf3e /release/sysinstall/ftp.c | |
parent | 754b3824315ef8a747c71d481aa623198b4a86e5 (diff) | |
download | FreeBSD-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 'release/sysinstall/ftp.c')
-rw-r--r-- | release/sysinstall/ftp.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/release/sysinstall/ftp.c b/release/sysinstall/ftp.c index 7746da7..f1e4304 100644 --- a/release/sysinstall/ftp.c +++ b/release/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; } } |