mirror of
https://github.com/moparisthebest/wget
synced 2024-07-03 16:38:41 -04:00
Revert 2444.
This commit is contained in:
parent
f97c9ac8e7
commit
8aa378bd9e
@ -1,3 +1,9 @@
|
||||
2010-11-22 Giuseppe Scrivano <gscrivano@gnu.org>
|
||||
|
||||
Revert last commit.
|
||||
* ftp.c (getftp): When count > 0, don't append to the existing file.
|
||||
* http.c (gethttp): Likewise.
|
||||
|
||||
2010-11-21 Giuseppe Scrivano <gscrivano@gnu.org>
|
||||
|
||||
* ftp.c (getftp): If `count' is bigger than zero, try to resume the
|
||||
|
@ -1152,7 +1152,7 @@ Error in server response, closing control connection.\n"));
|
||||
# define BIN_TYPE_FILE 1
|
||||
#endif /* def __VMS [else] */
|
||||
|
||||
if ((restval && !(con->cmd & DO_LIST)) || count > 0)
|
||||
if (restval && !(con->cmd & DO_LIST))
|
||||
{
|
||||
#ifdef __VMS
|
||||
int open_id;
|
||||
@ -1172,7 +1172,7 @@ Error in server response, closing control connection.\n"));
|
||||
#endif /* def __VMS [else] */
|
||||
}
|
||||
else if (opt.noclobber || opt.always_rest || opt.timestamping || opt.dirstruct
|
||||
|| opt.output_document)
|
||||
|| opt.output_document || count > 0)
|
||||
{
|
||||
if (opt.unlink && file_exists_p (con->target))
|
||||
{
|
||||
|
@ -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 || count > 0)
|
||||
if (hs->restval)
|
||||
{
|
||||
#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)
|
||||
else if (ALLOW_CLOBBER || count > 0)
|
||||
{
|
||||
if (opt.unlink && file_exists_p (hs->local_file))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user