]> sjero.net Git - wget/blobdiff - src/http.c
[svn] Fix #20747: Wget was returning error for non-recursive --spider when file exists.
[wget] / src / http.c
index 0dec22358256d813841196821a498e9c3221d3fa..0e292918612a0fa861c9b8365b637303dfa2678a 100644 (file)
@@ -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;
                 }
             }