Now I found this in curlbuild.h:
/* curl_off_t formatting string directive without "%" conversion specifier. */ #define CURL_FORMAT_CURL_OFF_T "lld " /* unsigned curl_off_t formatting string without "%" conversion specifier. */ #define CURL_FORMAT_CURL_OFF_TU "lld " -----Original Message----- From: curl-library [mailto:[email protected]] On Behalf Of Bentham, Dave Sent: 07 October 2014 14:30 To: libcurl development Subject: RE: FTP resume libcurl 7.15 to 7.37 I suspect there is an incompatibility between the shiny new v7.37 libcurl and our QNX 6.3 somewhat dated environment (gcc v2.95.3). In the ftp_state_retr(...) function, if I replace the PPSENDF line: PPSENDF(&ftpc->pp, "REST %" CURL_FORMAT_CURL_OFF_T, data->state.resume_from); with PPSENDF(&ftpc->pp, "REST %ld", data->state.resume_from); it works fine, no superfluous space character. I think I need to look closer at the configure script options maybe... Dave -----Original Message----- From: curl-library [mailto:[email protected]] On Behalf Of Daniel Stenberg Sent: 03 October 2014 22:21 To: libcurl development Subject: RE: FTP resume libcurl 7.15 to 7.37 On Fri, 3 Oct 2014, Bentham, Dave wrote: > Our philosophy is "if it ain't broke, don’t fix it" - hence 8 years with > v7.15. You have my full understanding for that and I would do the same. I'm not criticizing, I'm more just happy that it has been working that well for you for such a long time. > but with v7.37.1, which don’t > >> REST 40544 [CR] > > i.e. there's an extra space character after the offset, which the server (MS > IIS) rejects, returning 501 & showing in its log That's a bit of a mystery to me. Looking at the code (lib/ftp.c) I see no place where it would add a space after the number. The REST command is sent in the ftp_state_retr() function. Can you single-step into there and see how Curl_pp_vsendf() can end up sending an extra space? -- / daniel.haxx.se ------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.html ------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.html
