>What on earth does this mean?
>
>>> mrtg-2.9.26b.tar.gz doesn't seem to exist in /tmp/distfiles/.
>>> Attempting to fetch from
>http://people.ee.ethz.ch/~oetiker/webtools/mrtg/pub/.
>fetch: mrtg-2.9.26b.tar.gz: Multiple Choices

It means the web server is behaving oddly.  Here's a patch that gives
you a chance of understanding what's going on; it makes fetch -v display
the returned page in this case.

Index: http.c
===================================================================
RCS file: /home/ncvs/src/lib/libfetch/http.c,v
retrieving revision 1.64
diff -u -r1.64 http.c
--- http.c      30 Oct 2002 15:01:29 -0000      1.64
+++ http.c      21 Nov 2002 17:46:39 -0000
@@ -1005,10 +1005,15 @@
                /* all other cases: we got a redirect */
                e = conn->err;
                need_auth = 0;
+               if (!new) {
+                       DEBUG(fprintf(stderr, "redirect with no new location\n"));
+                       if ((f = _http_funopen(conn, chunked)) != NULL) {
+                               _http_print_html(stderr, f);
+                       }
+               }
                _fetch_close(conn);
                conn = NULL;
                if (!new) {
-                       DEBUG(fprintf(stderr, "redirect with no new location\n"));
                        break;
                }
                if (url != URL)
  Bill

Reply via email to