]> sjero.net Git - wget/blobdiff - src/http.c
On a network error, attempt to resume the download, not restart it.
[wget] / src / http.c
index a0e41cac01791916e0561d2809c0928b22e1b47a..99f58b3f1a9d3ea69e312c495437eb34cbe2e3dd 100644 (file)
@@ -2468,7 +2468,7 @@ File %s already there; not retrieving.\n\n"), quote (hs->local_file));
       mkalldirs (hs->local_file);
       if (opt.backups)
         rotate_backups (hs->local_file);
-      if (hs->restval)
+      if (hs->restval || count > 0)
         {
 #ifdef __VMS
           int open_id;
@@ -2479,7 +2479,7 @@ File %s already there; not retrieving.\n\n"), quote (hs->local_file));
           fp = fopen (hs->local_file, "ab");
 #endif /* def __VMS [else] */
         }
-      else if (ALLOW_CLOBBER || count > 0)
+      else if (ALLOW_CLOBBER)
         {
          if (opt.unlink && file_exists_p (hs->local_file))
            {