X-Git-Url: http://sjero.net/git/?p=wget;a=blobdiff_plain;f=src%2Fftp.c;h=a586d84952411d32edcf390c0be30d166c330ecd;hp=9e4f3d76bcbc231f4c74402fd00a81c2eed100f9;hb=bbe6b86c9ea6962c366fd7f1147353b7d120996a;hpb=19ef7249b8679e7a88067dca3db37e947408e15f diff --git a/src/ftp.c b/src/ftp.c index 9e4f3d76..a586d849 100644 --- 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