]> sjero.net Git - wget/commitdiff
[svn] Only use FILE.N.html if FILE.html exists.
authorhniksic <devnull@localhost>
Sat, 25 Feb 2006 23:28:49 +0000 (15:28 -0800)
committerhniksic <devnull@localhost>
Sat, 25 Feb 2006 23:28:49 +0000 (15:28 -0800)
src/ChangeLog
src/http.c

index dfc743d1fb033b04cec6bcda88ec0a373b1f339d..6a98096831e6c9c6ee03c1f56b80e0d6b7178fa3 100644 (file)
@@ -1,3 +1,7 @@
+2006-02-25  Hrvoje Niksic  <hniksic@xemacs.org>
+
+       * http.c (gethttp): Only use FILE.N.html if FILE.html exists.
+
 2006-02-09  Hrvoje Niksic  <hniksic@xemacs.org>
 
        * mswindows.c (run_with_timeout): Made thread_hnd non-static.
index 2225b43ce8b495245d0d1e5af8837dee5197fc91..c5827275896fce8283e5e9b42e70e40e3253d22e 100644 (file)
@@ -1979,7 +1979,7 @@ File `%s' already there; not retrieving.\n\n"), hs->local_file);
           strcpy(hs->local_file + local_filename_len, ".html");
           /* If clobbering is not allowed and the file, as named,
              exists, tack on ".NUMBER.html" instead. */
-          if (!ALLOW_CLOBBER)
+          if (!ALLOW_CLOBBER && file_exists_p (hs->local_file))
             {
               int ext_num = 1;
               do