From 637c0772f7a1cdb08ff26e0added72470f6e392b Mon Sep 17 00:00:00 2001 From: Ron Yorston Date: Sun, 16 Mar 2014 10:05:53 +0000 Subject: wget: add fseek calls to make ftp work; enable ftpget/ftpput --- networking/wget.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'networking/wget.c') diff --git a/networking/wget.c b/networking/wget.c index e68397693..f13ca1c74 100644 --- a/networking/wget.c +++ b/networking/wget.c @@ -258,11 +258,17 @@ static int ftpcmd(const char *s1, const char *s2, FILE *fp) fprintf(fp, "%s%s\r\n", s1, s2); fflush(fp); log_io("> %s%s", s1, s2); +#if ENABLE_PLATFORM_MINGW32 + fseek(fp, 0L, SEEK_CUR); +#endif } do { fgets_and_trim(fp); } while (!isdigit(G.wget_buf[0]) || G.wget_buf[3] != ' '); +#if ENABLE_PLATFORM_MINGW32 + fseek(fp, 0L, SEEK_CUR); +#endif G.wget_buf[3] = '\0'; result = xatoi_positive(G.wget_buf); -- cgit v1.2.3-55-g6feb