diff -Nru -x TAGS -x *info* -x *.po wget-1.5.2/AUTHORS wget-1.5.3/AUTHORS --- wget-1.5.2/AUTHORS Tue May 19 20:00:59 1998 +++ wget-1.5.3/AUTHORS Mon Sep 21 19:04:32 1998 @@ -1,4 +1,9 @@ -Authors of GNU Wget: +Authors of GNU Wget. + +[ Note that this file does not attempt to list all the contributors to + Wget; look at the ChangeLog for that. This is a list of people who + contributed sizeable amounts of code and assigned the copyright to the + FSF. ] Hrvoje Niksic. Designed and implemented Wget. diff -Nru -x TAGS -x *info* -x *.po wget-1.5.2/NEWS wget-1.5.3/NEWS --- wget-1.5.2/NEWS Thu May 7 14:59:28 1998 +++ wget-1.5.3/NEWS Mon Sep 21 19:09:30 1998 @@ -5,6 +5,8 @@ Please send GNU Wget bug reports to . +* Wget 1.5.3 is a bugfix release with no user-visible changes. + * Wget 1.5.2 is a bugfix release with no user-visible changes. * Wget 1.5.1 is a bugfix release with no user-visible changes. diff -Nru -x TAGS -x *info* -x *.po wget-1.5.2/TODO wget-1.5.3/TODO --- wget-1.5.2/TODO Sat Jun 13 02:46:58 1998 +++ wget-1.5.3/TODO Mon Sep 21 19:06:11 1998 @@ -71,6 +71,8 @@ * Implement correct RFC1808 URL parsing. +* Implement HTTP cookies. + * Implement more HTTP/1.1 bells and whistles (ETag, Content-MD5 etc.) * Support SSL encryption through SSLeay. diff -Nru -x TAGS -x *info* -x *.po wget-1.5.2/doc/ChangeLog wget-1.5.3/doc/ChangeLog --- wget-1.5.2/doc/ChangeLog Wed Jun 24 00:00:05 1998 +++ wget-1.5.3/doc/ChangeLog Thu Sep 10 14:17:34 1998 @@ -1,3 +1,7 @@ +1998-09-10 Hrvoje Niksic + + * wget.texi (HTTP Options): Warn against masquerading as Mozilla. + 1998-05-24 Hrvoje Niksic * Makefile.in (clean): Remove HTML files. diff -Nru -x TAGS -x *info* -x *.po wget-1.5.2/doc/wget.texi wget-1.5.3/doc/wget.texi --- wget-1.5.2/doc/wget.texi Tue Jun 23 23:32:43 1998 +++ wget-1.5.3/doc/wget.texi Fri Sep 11 02:34:56 1998 @@ -14,8 +14,8 @@ @afourpaper @end iftex -@set VERSION 1.5.2 -@set UPDATED May 1998 +@set VERSION 1.5.3 +@set UPDATED Sep 1998 @dircategory Net Utilities @dircategory World Wide Web @@ -744,16 +744,14 @@ the output according to the @code{User-Agent}-supplied information. While conceptually this is not such a bad idea, it has been abused by servers denying information to clients other than @code{Mozilla} or -Microsoft @code{Internet Explorer}. In these cases it may be useful to -``fake'' the user-agent with this option. In the following example Wget -masquerades as Mozilla 4.03 running on Solaris. - -@example -wget -U "Mozilla/4.03 [en] (X11; I; SunOS 5.5.1 sun4u)" -@end example - -Use of this option is discouraged, unless you really know what you are -doing. +Microsoft @code{Internet Explorer}. This option allows you to change +the @code{User-Agent} line issued by Wget. Use of this option is +discouraged, unless you really know what you are doing. + +@strong{NOTE} that Netscape Communications Corp. has claimed that false +transmissions of @samp{Mozilla} as the @code{User-Agent} are a copyright +infringement, which will be prosecuted. @strong{DO NOT} misrepresent +Wget as Mozilla. @end table @node FTP Options, Recursive Retrieval Options, HTTP Options, Invoking @@ -2639,7 +2637,9 @@ @end ifinfo Andy Eskilsson, Masashi Fujita, +Howard Gayle, Marcel Gerrits, +Hans Grobler, Mathieu Guillaume, Karl Heuer, Gregor Hoffleit, @@ -2689,10 +2689,12 @@ @ifinfo Juan Jose Rodrigues, @end ifinfo +Heinz Salzmann, Robert Schmidt, Toomas Soome, Sven Sternberger, Markus Strasser, +Szakacsits Szabolcs, Mike Thomas, Russell Vincent, Douglas E. Wegscheid, Binary files wget-1.5.2/po/cs.gmo and wget-1.5.3/po/cs.gmo differ Binary files wget-1.5.2/po/de.gmo and wget-1.5.3/po/de.gmo differ Binary files wget-1.5.2/po/hr.gmo and wget-1.5.3/po/hr.gmo differ Binary files wget-1.5.2/po/it.gmo and wget-1.5.3/po/it.gmo differ Binary files wget-1.5.2/po/no.gmo and wget-1.5.3/po/no.gmo differ Binary files wget-1.5.2/po/pt_BR.gmo and wget-1.5.3/po/pt_BR.gmo differ diff -Nru -x TAGS -x *info* -x *.po wget-1.5.2/po/wget.pot wget-1.5.3/po/wget.pot --- wget-1.5.2/po/wget.pot Tue Jun 23 23:53:01 1998 +++ wget-1.5.3/po/wget.pot Mon Sep 21 19:08:19 1998 @@ -6,7 +6,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" -"POT-Creation-Date: 1998-06-23 23:53+0200\n" +"POT-Creation-Date: 1998-09-21 19:08+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -82,7 +82,7 @@ "\n" msgstr "" -#: src/ftp.c:331 src/ftp.c:599 src/ftp.c:647 src/url.c:1426 +#: src/ftp.c:331 src/ftp.c:599 src/ftp.c:647 src/url.c:1431 msgid "done.\n" msgstr "" @@ -224,42 +224,42 @@ "\n" msgstr "" -#: src/ftp.c:1143 +#: src/ftp.c:1144 #, c-format msgid "Creating symlink %s -> %s\n" msgstr "" -#: src/ftp.c:1154 +#: src/ftp.c:1155 #, c-format msgid "Symlinks not supported, skipping symlink `%s'.\n" msgstr "" -#: src/ftp.c:1166 +#: src/ftp.c:1167 #, c-format msgid "Skipping directory `%s'.\n" msgstr "" -#: src/ftp.c:1175 +#: src/ftp.c:1176 #, c-format msgid "%s: unknown/unsupported file type.\n" msgstr "" -#: src/ftp.c:1191 +#: src/ftp.c:1193 #, c-format msgid "%s: corrupt time-stamp.\n" msgstr "" -#: src/ftp.c:1211 +#: src/ftp.c:1213 #, c-format msgid "Will not retrieve dirs since depth is %d (max %d).\n" msgstr "" -#: src/ftp.c:1250 +#: src/ftp.c:1252 #, c-format msgid "Not descending to `%s' as it is excluded/not-included.\n" msgstr "" -#: src/ftp.c:1295 +#: src/ftp.c:1297 #, c-format msgid "Rejecting `%s'.\n" msgstr "" @@ -267,17 +267,17 @@ #. No luck. #. #### This message SUCKS. We should see what was the #. reason that nothing was retrieved. -#: src/ftp.c:1342 +#: src/ftp.c:1344 #, c-format msgid "No matches on pattern `%s'.\n" msgstr "" -#: src/ftp.c:1402 +#: src/ftp.c:1404 #, c-format msgid "Wrote HTML-ized index to `%s' [%ld].\n" msgstr "" -#: src/ftp.c:1407 +#: src/ftp.c:1409 #, c-format msgid "Wrote HTML-ized index to `%s'.\n" msgstr "" @@ -351,45 +351,49 @@ msgid "%s: Warning: cannot reverse-lookup local IP address.\n" msgstr "" -#: src/host.c:506 +#. This gets ticked pretty often. Karl Berry reports +#. that there can be valid reasons for the local host +#. name not to be an FQDN, so I've decided to remove the +#. annoying warning. +#: src/host.c:511 #, c-format msgid "%s: Warning: reverse-lookup of local address did not yield FQDN!\n" msgstr "" -#: src/host.c:533 +#: src/host.c:539 msgid "Host not found" msgstr "" -#: src/host.c:535 +#: src/host.c:541 msgid "Unknown error" msgstr "" -#: src/html.c:435 src/html.c:437 +#: src/html.c:439 src/html.c:441 #, c-format msgid "Index of /%s on %s:%d" msgstr "" -#: src/html.c:459 +#: src/html.c:463 msgid "time unknown " msgstr "" -#: src/html.c:463 +#: src/html.c:467 msgid "File " msgstr "" -#: src/html.c:466 +#: src/html.c:470 msgid "Directory " msgstr "" -#: src/html.c:469 +#: src/html.c:473 msgid "Link " msgstr "" -#: src/html.c:472 +#: src/html.c:476 msgid "Not sure " msgstr "" -#: src/html.c:490 +#: src/html.c:494 #, c-format msgid " (%s bytes)" msgstr "" @@ -550,22 +554,22 @@ msgid "%s: Warning: Both system and user wgetrc point to `%s'.\n" msgstr "" -#: src/init.c:461 +#: src/init.c:458 #, c-format msgid "%s: BUG: unknown command `%s', value `%s'.\n" msgstr "" -#: src/init.c:488 +#: src/init.c:485 #, c-format msgid "%s: %s: Please specify on or off.\n" msgstr "" -#: src/init.c:506 src/init.c:763 src/init.c:785 src/init.c:858 +#: src/init.c:503 src/init.c:760 src/init.c:782 src/init.c:855 #, c-format msgid "%s: %s: Invalid specification `%s'.\n" msgstr "" -#: src/init.c:619 src/init.c:641 src/init.c:663 src/init.c:689 +#: src/init.c:616 src/init.c:638 src/init.c:660 src/init.c:686 #, c-format msgid "%s: Invalid specification `%s'\n" msgstr "" @@ -754,12 +758,12 @@ msgid "%s: missing URL\n" msgstr "" -#: src/main.c:670 +#: src/main.c:674 #, c-format msgid "No URLs found in %s.\n" msgstr "" -#: src/main.c:679 +#: src/main.c:683 #, c-format msgid "" "\n" @@ -767,14 +771,14 @@ "Downloaded: %s bytes in %d files\n" msgstr "" -#: src/main.c:684 +#: src/main.c:688 #, c-format msgid "Download quota (%s bytes) EXCEEDED!\n" msgstr "" #. Please note that the double `%' in `%%s' is intentional, because #. redirect_output passes tmp through printf. -#: src/main.c:711 +#: src/main.c:715 msgid "%s received, redirecting output to `%%s'.\n" msgstr "" @@ -788,11 +792,11 @@ msgstr "" #. parent, no error -#: src/mswindows.c:135 src/utils.c:265 +#: src/mswindows.c:135 src/utils.c:268 msgid "Continuing in background.\n" msgstr "" -#: src/mswindows.c:137 src/utils.c:267 +#: src/mswindows.c:137 src/utils.c:270 #, c-format msgid "Output will be written to `%s'.\n" msgstr "" @@ -874,44 +878,44 @@ "\n" msgstr "" -#: src/url.c:935 +#: src/url.c:940 #, c-format msgid "Error (%s): Link %s without a base provided.\n" msgstr "" -#: src/url.c:950 +#: src/url.c:955 #, c-format msgid "Error (%s): Base %s relative, without referer URL.\n" msgstr "" -#: src/url.c:1368 +#: src/url.c:1373 #, c-format msgid "Converting %s... " msgstr "" -#: src/url.c:1373 src/url.c:1384 +#: src/url.c:1378 src/url.c:1389 #, c-format msgid "Cannot convert links in %s: %s\n" msgstr "" -#: src/utils.c:68 +#: src/utils.c:71 #, c-format msgid "%s: %s: Not enough memory.\n" msgstr "" -#: src/utils.c:200 +#: src/utils.c:203 msgid "Unknown/unsupported protocol" msgstr "" -#: src/utils.c:203 +#: src/utils.c:206 msgid "Invalid port specification" msgstr "" -#: src/utils.c:206 +#: src/utils.c:209 msgid "Invalid host name" msgstr "" -#: src/utils.c:427 +#: src/utils.c:430 #, c-format msgid "Failed to unlink symlink `%s': %s\n" msgstr "" diff -Nru -x TAGS -x *info* -x *.po wget-1.5.2/src/ChangeLog wget-1.5.3/src/ChangeLog --- wget-1.5.2/src/ChangeLog Tue Jun 23 23:51:17 1998 +++ wget-1.5.3/src/ChangeLog Mon Sep 21 19:01:05 1998 @@ -1,3 +1,61 @@ +1998-09-21 Hrvoje Niksic + + * version.c: Wget 1.5.3 is released. + +1998-09-21 Hrvoje Niksic + + * host.c (ftp_getaddress): Don't warn when reverse-lookup of local + address doesn't yield FQDN. + +1998-09-21 Andreas Schwab + + * cmpt.c (strerror): Fix declaration of sys_errlist. + +1998-09-11 Hrvoje Niksic + + * main.c (main): Don't use an array subscript as the first + argument to STRDUP_ALLOCA. + From Kaveh R. Ghazi. + +1998-09-11 Szakacsits Szabolcs + + * html.c (htmlfindurl): Download table background. + +1998-09-11 Hans Grobler + + * init.c (parse_line): Would free *com before allocating it. + (parse_line): Would free com instead of *com. + +1998-09-10 Howard Gayle + + * url.c (get_urls_html): Would drop the last character of the + link. + +1998-09-10 Hrvoje Niksic + + * http.c (http_loop): Don't print status code if quiet. + +1998-09-10 Kaveh R. Ghazi + + * log.c: Use only when __STDC__. + +1998-09-10 Adam D. Moss + + * html.c (htmlfindurl): Download . + +1998-09-10 Howard Gayle + + * ftp.c (ftp_retrieve_list): Don't update the time stamp of a file + not retrieved. + +1998-06-27 Hrvoje Niksic + + * utils.c: Include on NeXT. + +1998-06-26 Heinz Salzmann + + * url.c (get_urls_html): Fix calculation of URL position. + 1998-06-23 Hrvoje Niksic * version.c: Wget 1.5.2 is released. diff -Nru -x TAGS -x *info* -x *.po wget-1.5.2/src/cmpt.c wget-1.5.3/src/cmpt.c --- wget-1.5.2/src/cmpt.c Fri May 1 19:44:46 1998 +++ wget-1.5.3/src/cmpt.c Mon Sep 21 14:06:39 1998 @@ -42,7 +42,7 @@ strerror (int err) { /* This loses on a system without `sys_errlist'. */ - extern char **sys_errlist; + extern char *sys_errlist[]; return sys_errlist[err]; } #endif /* not HAVE_STRERROR */ diff -Nru -x TAGS -x *info* -x *.po wget-1.5.2/src/ftp.c wget-1.5.3/src/ftp.c --- wget-1.5.2/src/ftp.c Tue Jun 23 23:29:18 1998 +++ wget-1.5.3/src/ftp.c Thu Sep 10 14:21:36 1998 @@ -1136,6 +1136,7 @@ logprintf (LOG_VERBOSE, _("\ Already have correct symlink %s -> %s\n\n"), u->local, f->linkto); + dlthis = 0; break; } } @@ -1183,6 +1184,7 @@ if (!opt.dfp && !(f->type == FT_SYMLINK && !opt.retr_symlinks) && f->tstamp != -1 + && dlthis && file_exists_p (u->local)) { touch (u->local, f->tstamp); @@ -1190,7 +1192,7 @@ else if (f->tstamp == -1) logprintf (LOG_NOTQUIET, _("%s: corrupt time-stamp.\n"), u->local); - if (f->perms) + if (f->perms && dlthis) chmod (u->local, f->perms); else DEBUGP (("Unrecognized permissions for %s.\n", u->local)); diff -Nru -x TAGS -x *info* -x *.po wget-1.5.2/src/host.c wget-1.5.3/src/host.c --- wget-1.5.2/src/host.c Tue Apr 28 23:42:40 1998 +++ wget-1.5.3/src/host.c Mon Sep 21 18:55:42 1998 @@ -503,9 +503,15 @@ } if (!strchr (hp->h_name, '.')) { - logprintf (LOG_ALWAYS, _("\ +#if 0 + /* This gets ticked pretty often. Karl Berry reports + that there can be valid reasons for the local host + name not to be an FQDN, so I've decided to remove the + annoying warning. */ + logprintf (LOG_ALWAYS, _("\ %s: Warning: reverse-lookup of local address did not yield FQDN!\n"), exec_name); +#endif fqdn = ""; goto giveup; } diff -Nru -x TAGS -x *info* -x *.po wget-1.5.2/src/html.c wget-1.5.3/src/html.c --- wget-1.5.2/src/html.c Sun Jun 7 00:31:48 1998 +++ wget-1.5.3/src/html.c Fri Sep 11 02:32:26 1998 @@ -91,6 +91,10 @@ { "area", "href" }, { "img", "lowsrc" }, { "input", "src" }, + { "layer", "src" }, + { "table", "background"}, + { "th", "background"}, + { "td", "background"}, /* Tags below this line are treated specially. */ { "base", "href" }, { "meta", "content" }, diff -Nru -x TAGS -x *info* -x *.po wget-1.5.2/src/http.c wget-1.5.3/src/http.c --- wget-1.5.2/src/http.c Tue Jun 23 23:29:18 1998 +++ wget-1.5.3/src/http.c Thu Sep 10 15:14:44 1998 @@ -59,7 +59,7 @@ #include "fnmatch.h" #include "netrc.h" #if USE_DIGEST -# include +# include "md5.h" #endif extern char *version_string; @@ -1080,7 +1080,7 @@ if (opt.spider) { - logprintf (LOG_ALWAYS, "%d %s\n\n", hstat.statcode, hstat.error); + logprintf (LOG_NOTQUIET, "%d %s\n\n", hstat.statcode, hstat.error); return RETROK; } diff -Nru -x TAGS -x *info* -x *.po wget-1.5.2/src/init.c wget-1.5.3/src/init.c --- wget-1.5.2/src/init.c Tue Jun 23 23:29:18 1998 +++ wget-1.5.3/src/init.c Fri Sep 11 02:20:23 1998 @@ -406,10 +406,7 @@ ; /* The next char should be space or '='. */ if (!ISSPACE (*p) && (*p != '=')) - { - free (*com); - return 0; - } + return 0; *com = (char *)xmalloc (p - orig_comptr + 1); for (new_comptr = *com; orig_comptr < p; orig_comptr++) { @@ -430,7 +427,7 @@ /* If '=' not found, bail out. */ if (*p != '=') { - free (com); + free (*com); return 0; } /* Skip spaces after '='. */ diff -Nru -x TAGS -x *info* -x *.po wget-1.5.2/src/log.c wget-1.5.3/src/log.c --- wget-1.5.2/src/log.c Tue Apr 28 23:39:32 1998 +++ wget-1.5.3/src/log.c Thu Sep 10 14:31:26 1998 @@ -26,7 +26,9 @@ # include #endif #include -#ifdef HAVE_STDARG_H +#if defined(__STDC__) && defined(HAVE_STDARG_H) +/* If we have __STDC__ and stdarg.h, we'll assume it's an ANSI system. */ +# define USE_STDARG # include #else # include @@ -172,23 +174,22 @@ /* Portability makes these two functions look like @#%#@$@#$. */ -#ifdef HAVE_STDARG_H /* If we have stdarg.h, we'll pretend it's an - ANSI system. */ +#ifdef USE_STDARG void logprintf (enum log_options o, const char *fmt, ...) -#else /* not HAVE_STDARG_H */ +#else /* not USE_STDARG */ void logprintf (va_alist) va_dcl -#endif /* not HAVE_STDARG_H */ +#endif /* not USE_STDARG */ { va_list args; -#ifndef HAVE_STDARG_H +#ifndef USE_STDARG enum log_options o; const char *fmt; #endif -#ifdef HAVE_STDARG_H +#ifdef USE_STDARG va_start (args, fmt); #else va_start (args); @@ -202,23 +203,23 @@ #ifdef DEBUG /* The same as logprintf(), but does anything only if opt.debug is non-zero. */ -#ifdef HAVE_STDARG_H +#ifdef USE_STDARG void debug_logprintf (const char *fmt, ...) -#else /* not HAVE_STDARG_H */ +#else /* not USE_STDARG */ void debug_logprintf (va_alist) va_dcl -#endif /* not HAVE_STDARG_H */ +#endif /* not USE_STDARG */ { if (opt.debug) { va_list args; -#ifndef HAVE_STDARG_H +#ifndef USE_STDARG const char *fmt; #endif -#ifdef HAVE_STDARG_H +#ifdef USE_STDARG va_start (args, fmt); #else va_start (args); diff -Nru -x TAGS -x *info* -x *.po wget-1.5.2/src/main.c wget-1.5.3/src/main.c --- wget-1.5.2/src/main.c Sat May 9 18:05:26 1998 +++ wget-1.5.3/src/main.c Fri Sep 11 03:41:53 1998 @@ -599,7 +599,11 @@ url = ALLOCA_ARRAY (char *, nurl + 1); /* Fill in the arguments. */ for (i = 0; i < nurl; i++, optind++) - STRDUP_ALLOCA (url[i], argv[optind]); + { + char *irix4_cc_needs_this; + STRDUP_ALLOCA (irix4_cc_needs_this, argv[optind]); + url[i] = irix4_cc_needs_this; + } url[i] = NULL; /* Change the title of console window on Windows. #### I think this diff -Nru -x TAGS -x *info* -x *.po wget-1.5.2/src/url.c wget-1.5.3/src/url.c --- wget-1.5.2/src/url.c Tue Jun 16 04:55:27 1998 +++ wget-1.5.3/src/url.c Fri Sep 11 02:23:26 1998 @@ -869,9 +869,14 @@ browsers do, so we may follow. May the authors of "WYSIWYG" HTML tools burn in hell for the damage they've inflicted! */ while ((pbuf < buf + step) && ISSPACE (*pbuf)) - ++pbuf; - while (size && ISSPACE (pbuf[size])) + { + ++pbuf; + --size; + } + while (size && ISSPACE (pbuf[size - 1])) --size; + if (!size) + break; for (i = 0; protostrings[i]; i++) { @@ -994,7 +999,7 @@ current->next = NULL; current->url = constr; current->size = size; - current->pos = pbuf - buf; + current->pos = pbuf - orig_buf; /* A URL is relative if the host and protocol are not named, and the name does not start with `/'. */ if (no_proto && *pbuf != '/') diff -Nru -x TAGS -x *info* -x *.po wget-1.5.2/src/utils.c wget-1.5.3/src/utils.c --- wget-1.5.2/src/utils.c Tue Jun 16 04:29:27 1998 +++ wget-1.5.3/src/utils.c Sat Jun 27 22:49:13 1998 @@ -42,6 +42,9 @@ # include #endif #include +#ifdef NeXT +# include /* for access() */ +#endif #include "wget.h" #include "utils.h" diff -Nru -x TAGS -x *info* -x *.po wget-1.5.2/src/version.c wget-1.5.3/src/version.c --- wget-1.5.2/src/version.c Sat Jun 13 06:53:10 1998 +++ wget-1.5.3/src/version.c Fri Jun 26 03:09:42 1998 @@ -1 +1 @@ -char *version_string = "1.5.2"; +char *version_string = "1.5.3";