From adc0632654a561a27aee90dd7a1862c27b978b16 Mon Sep 17 00:00:00 2001 From: micah Date: Wed, 29 Aug 2007 21:34:34 -0700 Subject: [PATCH] [svn] Fix #20747: Wget was returning error for non-recursive --spider when file exists. --- src/ChangeLog | 7 ++++++- src/http.c | 4 ++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/ChangeLog b/src/ChangeLog index 4c7de37c..6165534e 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -32,7 +32,12 @@ 2007-08-24 Micah Cowan * http.c (http_loop): Introduced time_came_from_head boolean - flag, to help avoid parsing the same Last-Modified header twice, + flag, to help avoid parsing the same Last-Modified header twice. + Replaced spidering returns of RETRUNNEEDED for some situations, + to RETROK, as otherwise it will be interpreted as an error. + RETRUNNEEDED appears never to be referenced outside of + http.c (and wget.h), and, when returned by gethttp, is + translated by http_loop to RETROK. 2007-08-23 Joshua David Williams diff --git a/src/http.c b/src/http.c index 0dec2235..0e292918 100644 --- a/src/http.c +++ b/src/http.c @@ -2619,7 +2619,7 @@ Remote file exists and could contain links to other resources -- retrieving.\n\n { logprintf (LOG_VERBOSE, _("\ Remote file exists but does not contain any link -- not retrieving.\n\n")); - ret = RETRUNNEEDED; + ret = RETROK; /* RETRUNNEEDED is not for caller. */ goto exit; } } @@ -2627,7 +2627,7 @@ Remote file exists but does not contain any link -- not retrieving.\n\n")); { logprintf (LOG_VERBOSE, _("\ Remote file exists but recursion is disabled -- not retrieving.\n\n")); - ret = RETRUNNEEDED; + ret = RETROK; /* RETRUNNEEDED is not for caller. */ goto exit; } } -- 2.39.2