X-Git-Url: http://sjero.net/git/?p=wget;a=blobdiff_plain;f=src%2Fftp.c;fp=src%2Fftp.c;h=c331d066f2c6569ca2434794367244f3d5a94f17;hp=8dddeed89cba85e1d83db44562c3a9c208edf059;hb=2aa2a913c3d28247cc9ca426c810975316775888;hpb=336f3c63d1def2983bb9acb0b544084a51b8b143 diff --git a/src/ftp.c b/src/ftp.c index 8dddeed8..c331d066 100644 --- a/src/ftp.c +++ b/src/ftp.c @@ -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)) + if ((restval && !(con->cmd & DO_LIST)) || count > 0) { #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 || count > 0) + || opt.output_document) { if (opt.unlink && file_exists_p (con->target)) {