]> git.ipfire.org Git - thirdparty/curl.git/commit
curl_formadd: fix file upload on VMS
authorJohn E. Malmberg <wb8tyw@qsl.net>
Sun, 28 Jul 2013 21:33:45 +0000 (23:33 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 29 Jul 2013 11:09:08 +0000 (13:09 +0200)
commitdb2deba6b4b0e447781ff0e2bdee2aec0a283c97
tree7cbbb8d85eb3daf91a7949b926ed6035baabaf1a
parent41fb6443ceeda65c09dbe0e1fd7591269e4966a9
curl_formadd: fix file upload on VMS

For the standard VMS text file formats, VMS needs to read the file to
get the actual file size.

For the standard VMS binary file formats, VMS needs a special format of
fopen() call so that it stops reading at the logical end of file instead
of at the end of the blocks allocated to the file.

I structured the patch this way as I was not sure about changing the
structures or parameters to the routines, but would prefer to only call
the stat() function once and pass the information to where the fopen()
call is made.

Bug: https://sourceforge.net/p/curl/bugs/758/
lib/formdata.c