[In a previous message,
Steven M. Schweda
Wed, 07 Dec 2005 06:58:21 -0800
http://www.mail-archive.com/wget%40sunsite.dk/msg08513.html
posted a patch]

Thanks - that patch fixed it - no more lines reporting "No such file
''" when used with the patch for dot-files, and using
--list-options="-a"

Here's the exact patch I applied:
--- src/ftp.c.1 2005-12-07 18:10:03.000000000 -0500
+++ src/ftp.c   2005-12-07 18:43:46.000000000 -0500
@@ -1775,13 +1775,21 @@
          logprintf (LOG_VERBOSE, _("No matches on pattern `%s'.\n"),
                     escnonprint (u->file));
        }
-      else /* GLOB_GETONE or GLOB_GETALL */
+      else if (action == GLOB_GETONE)
        {
          /* Let's try retrieving it anyway.  */
          con->st |= ON_YOUR_OWN;
          res = ftp_loop_internal (u, NULL, con);
          return res;
        }
+      else if (action == GLOB_GETALL)
+       {
+        DEBUGP (("Empty directory, nothing to retrieve.\n"));
+        /* If action == GLOB_GETALL, and the file list is empty, there's
+           no point in trying to download anything or in complaining about
+           it.  (An empty directory should not cause complaints.)
+        */
+       }
     }
   freefileinfo (start);
   if (opt.quota && total_downloaded_bytes > opt.quota)

Reply via email to