]> sjero.net Git - wget/blobdiff - src/ftp.c
Return a network failure when FTP downloads fail and --timestamping is used.
[wget] / src / ftp.c
index 9e4f3d76bcbc231f4c74402fd00a81c2eed100f9..a586d84952411d32edcf390c0be30d166c330ecd 100644 (file)
--- a/src/ftp.c
+++ b/src/ftp.c
@@ -2125,7 +2125,7 @@ ftp_retrieve_glob (struct url *u, ccon *con, int action)
   if (start)
     {
       /* Just get everything.  */
-      ftp_retrieve_list (u, start, con);
+      res = ftp_retrieve_list (u, start, con);
     }
   else
     {
@@ -2154,8 +2154,7 @@ ftp_retrieve_glob (struct url *u, ccon *con, int action)
   if (opt.quota && total_downloaded_bytes > opt.quota)
     return QUOTEXC;
   else
-    /* #### Should we return `res' here?  */
-    return RETROK;
+    return res;
 }
 
 /* The wrapper that calls an appropriate routine according to contents