summaryrefslogtreecommitdiffstats
path: root/usr.bin/fetch
diff options
context:
space:
mode:
authorgreen <green@FreeBSD.org>1999-06-21 02:38:16 +0000
committergreen <green@FreeBSD.org>1999-06-21 02:38:16 +0000
commit0aac238e5bc985c58f911dcb295a89f18e5857cc (patch)
tree1ea97ab29d0ab61c410c2681a9437275874877b3 /usr.bin/fetch
parent72c18c01ff96c52afa43173ccb123b3feaf1395f (diff)
downloadFreeBSD-src-0aac238e5bc985c58f911dcb295a89f18e5857cc.zip
FreeBSD-src-0aac238e5bc985c58f911dcb295a89f18e5857cc.tar.gz
This fixes the problem of cancelling an FTP transfer resulting in
a bogus error ("parsing URI".) I also fixed an inconsistency in another fs_status.
Diffstat (limited to 'usr.bin/fetch')
-rw-r--r--usr.bin/fetch/ftp.c5
-rw-r--r--usr.bin/fetch/http.c4
2 files changed, 6 insertions, 3 deletions
diff --git a/usr.bin/fetch/ftp.c b/usr.bin/fetch/ftp.c
index 5e40848..f2f2640 100644
--- a/usr.bin/fetch/ftp.c
+++ b/usr.bin/fetch/ftp.c
@@ -26,7 +26,7 @@
* OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: ftp.c,v 1.12 1999/02/03 20:43:29 fenner Exp $
+ * $Id: ftp.c,v 1.13 1999/02/05 01:01:17 fenner Exp $
*/
#include <sys/types.h>
@@ -348,6 +348,7 @@ ftp_retrieve(struct fetch_state *fs)
time_t modtime;
size_t readresult, writeresult;
+ fs->fs_status = "logging in to FTP server";
ftp = ftpLogin(ftps->ftp_hostname,
(char *)(ftps->ftp_user ? ftps->ftp_user : "anonymous"),
/* XXX ^^^^ bad API */
@@ -358,6 +359,7 @@ ftp_retrieve(struct fetch_state *fs)
status ? ftpErrString(status) : hstrerror(h_errno));
return EX_IOERR;
}
+ fs->fs_status = "preparing for FTP transfer";
if (ftps->ftp_type && strcasecmp(ftps->ftp_type, "i") != 0) {
if (strcasecmp(ftps->ftp_type, "a") == 0)
ftpAscii(ftp);
@@ -432,6 +434,7 @@ ftp_retrieve(struct fetch_state *fs)
}
}
+ fs->fs_status = "retrieving file from FTP server";
remote = ftpGet(ftp, ftps->ftp_remote_file, &seekloc);
if (remote == 0) {
if (ftpErrno(ftp)) {
diff --git a/usr.bin/fetch/http.c b/usr.bin/fetch/http.c
index 7851b38..0805e27 100644
--- a/usr.bin/fetch/http.c
+++ b/usr.bin/fetch/http.c
@@ -26,7 +26,7 @@
* OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: http.c,v 1.26 1999/02/23 18:51:13 wollman Exp $
+ * $Id: http.c,v 1.27 1999/05/18 19:37:37 jmg Exp $
*/
#include <sys/types.h>
@@ -661,7 +661,7 @@ got100reply:
unsetup_sigalrm();
return EX_OSERR;
}
- fs->fs_status = "retrieving from HTTP/0.9 server";
+ fs->fs_status = "retrieving file from HTTP/0.9 server";
display(fs, -1, 0);
do {
OpenPOWER on IntegriCloud