X-Git-Url: http://sjero.net/git/?p=wget;a=blobdiff_plain;f=src%2Fhttp.c;h=99f58b3f1a9d3ea69e312c495437eb34cbe2e3dd;hp=a0e41cac01791916e0561d2809c0928b22e1b47a;hb=2aa2a913c3d28247cc9ca426c810975316775888;hpb=336f3c63d1def2983bb9acb0b544084a51b8b143 diff --git a/src/http.c b/src/http.c index a0e41cac..99f58b3f 100644 --- a/src/http.c +++ b/src/http.c @@ -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)) {