Guillaume Morin <[EMAIL PROTECTED]> writes:

> I am forwarding you this bug. I can reproduce this on 1.8.1

Thanks for the report.  I believe this patch should fix it:

Index: src/ChangeLog
===================================================================
RCS file: /pack/anoncvs/wget/src/ChangeLog,v
retrieving revision 1.366
diff -u -r1.366 ChangeLog
--- src/ChangeLog       2002/03/26 18:59:42     1.366
+++ src/ChangeLog       2002/04/08 16:42:14
@@ -1,3 +1,7 @@
+2002-04-08  Hrvoje Niksic  <[EMAIL PROTECTED]>
+
+       * ftp.c (ftp_loop): Propagate the result of ftp_retrieve_glob.
+
 2002-03-26  Ian Abbott  <[EMAIL PROTECTED]>
 
        * Makefile.in: Updated several dependencies for object files.
Index: src/ftp.c
===================================================================
RCS file: /pack/anoncvs/wget/src/ftp.c,v
retrieving revision 1.53
diff -u -r1.53 ftp.c
--- src/ftp.c   2002/01/24 05:45:53     1.53
+++ src/ftp.c   2002/04/08 16:42:15
@@ -1688,8 +1688,8 @@
          /* ftp_retrieve_glob is a catch-all function that gets called
             if we need globbing, time-stamping or recursion.  Its
             third argument is just what we really need.  */
-         ftp_retrieve_glob (u, &con,
-                            (opt.ftp_glob && wild) ? GLOBALL : GETONE);
+         res = ftp_retrieve_glob (u, &con,
+                                  (opt.ftp_glob && wild) ? GLOBALL : GETONE);
        }
       else
        res = ftp_loop_internal (u, NULL, &con);

Reply via email to