]> sjero.net Git - wget/blobdiff - src/ftp.c
Make --auth-no-challenge work with user:pass@ in URLs.
[wget] / src / ftp.c
index 7256faa360b24252906cf1f7a91394807bb74e88..9f65cc340332957fed6968a2c7fd07b85a14fec5 100644 (file)
--- a/src/ftp.c
+++ b/src/ftp.c
@@ -216,7 +216,7 @@ print_length (wgint size, wgint start, bool authoritative)
     logprintf (LOG_VERBOSE, " (%s)", human_readable (size));
   if (start > 0)
     {
-      if (start >= 1024)
+      if (size - start >= 1024)
         logprintf (LOG_VERBOSE, _(", %s (%s) remaining"),
                    number_to_static_string (size - start),
                    human_readable (size - start));
@@ -805,8 +805,14 @@ Error in server response, closing control connection.\n"));
                    }
                  f = f->next;
                }
-             if (!exists)
-               {
+              if (exists)
+                {
+                  logputs (LOG_VERBOSE, "\n");
+                  logprintf (LOG_NOTQUIET, _("File %s exists.\n"),
+                             quote (u->file));
+                }
+             else
+                {
                  logputs (LOG_VERBOSE, "\n");
                  logprintf (LOG_NOTQUIET, _("No such file %s.\n"),
                             quote (u->file));