diff options
Diffstat (limited to 'usr.bin/fetch')
-rw-r--r-- | usr.bin/fetch/ftp.c | 5 | ||||
-rw-r--r-- | usr.bin/fetch/http.c | 4 |
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 { |