]> sjero.net Git - wget/blobdiff - src/http.c
[svn] Only use FILE.N.html if FILE.html exists.
[wget] / src / http.c
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