Commit 8771390d authored by Olivier Bertrand's avatar Olivier Bertrand

Change cURL option from > to -o. modified storage/connect/tabrest.cpp

parent 9193ceb2
......@@ -88,12 +88,12 @@ int Xcurl(PGLOBAL g, PCSZ Http, PCSZ Uri, PCSZ filename)
if (Uri) {
if (*Uri == '/' || Http[strlen(Http) - 1] == '/')
sprintf(buf, "curl %s%s > %s", Http, Uri, filename);
sprintf(buf, "curl %s%s -o %s", Http, Uri, filename);
else
sprintf(buf, "curl %s/%s > %s", Http, Uri, filename);
sprintf(buf, "curl %s/%s -o %s", Http, Uri, filename);
} else
sprintf(buf, "curl %s > %s", Http, filename);
sprintf(buf, "curl %s -o %s", Http, filename);
if ((pipe = popen(buf, "rt"))) {
if (trace(515))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment