cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-tracker mailing list Archives

[ curl-Bugs-2807267 ] CRLF bug in main.c when specifying -o -

From: SourceForge.net <noreply_at_sourceforge.net>
Date: Tue, 16 Jun 2009 18:03:42 +0000

Bugs item #2807267, was opened at 2009-06-16 18:45
Message generated for change (Comment added) made by bagder
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=2807267&group_id=976

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: client module
Group: bad behaviour
>Status: Closed
>Resolution: Fixed
Priority: 5
Private: No
Submitted By: wreuven (wreuven)
Assigned to: Daniel Stenberg (bagder)
Summary: CRLF bug in main.c when specifying -o -

Initial Comment:
Problem:

under windows:
curl -o - http://someplace/prog.exe > prog.exe -- results in a corrupted prog.exe LF-->CRLF
curl http://someplace/prog.exe > prog.exe -- works fine

Fix:
in main.c
buggy line: if(!outfile && !config->use_ascii) {
fixed line: if( (!outfile || (strcmp(outfile,"-")==0)) && !config->use_ascii) {

Reuven Wachtfogel
wreuven_at_yahoo.com

----------------------------------------------------------------------

Comment By: Daniel Stenberg (bagder)
Date: 2009-06-16 20:03

Message:
Thanks for the report, this problem is now fixed in CVS!

----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=2807267&group_id=976
Received on 2009-06-16

These mail archives are generated by hypermail.

donate! Page updated November 12, 2010.
web site info

File upload with ASP.NET