]> sjero.net Git - wget/blobdiff - src/ftp.c
[svn] Propagate the result of ftp_retrieve_glob to the caller of ftp_loop.
[wget] / src / ftp.c
index e02c018b8478daa89ccaa8af299f54b0123ef66e..b45a7b52b4e4395da3ed34e996e42bf43bfa029e 100644 (file)
--- a/src/ftp.c
+++ b/src/ftp.c
@@ -1688,8 +1688,8 @@ ftp_loop (struct url *u, int *dt)
          /* 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);