]> granicus.if.org Git - curl/commit
curl: fix upload of a zip file in OpenVMS
authorJohn E. Malmberg <wb8tyw@qsl.net>
Mon, 22 Jul 2013 20:15:27 +0000 (22:15 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 22 Jul 2013 20:30:05 +0000 (22:30 +0200)
commit5880db8abd656413e1dc54881d347edaf78f1399
tree655932cae65a118b1969e6a6974b7bdc711a4a16
parent0f4ba89ffdf93ed7883b4a1f53f1c383df4fcfad
curl: fix upload of a zip file in OpenVMS

Two fixes:

1. Force output file format to be stream-lf so that partial downloads
can be continued.

This should have minor impact as if the file does not exist, it was
created with stream-lf format.  The only time this was an issue is if
there was already an existing file with a different format.

2. Fix file uploads are now fixed.

   a. VMS binary files such as ZIP archives are now uploaded
      correctly.

   b. VMS text files are read once to get the correct size
      and then converted to line-feed terminated records as
      they are read into curl.

The default VMS text formats do not contain either line-feed or
carriage-return terminated records.  Those delimiters are added by the
operating system file read calls if the application requests them.

Bug: http://curl.haxx.se/bug/view.cgi?id=496
src/tool_operate.c