1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00

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

This commit is contained in:
Olivier Bertrand
2020-11-14 18:28:16 +01:00
parent 9193ceb2c4
commit 8771390dfd

View File

@@ -88,12 +88,12 @@ int Xcurl(PGLOBAL g, PCSZ Http, PCSZ Uri, PCSZ filename)
if (Uri) { if (Uri) {
if (*Uri == '/' || Http[strlen(Http) - 1] == '/') 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 else
sprintf(buf, "curl %s/%s > %s", Http, Uri, filename); sprintf(buf, "curl %s/%s -o %s", Http, Uri, filename);
} else } else
sprintf(buf, "curl %s > %s", Http, filename); sprintf(buf, "curl %s -o %s", Http, filename);
if ((pipe = popen(buf, "rt"))) { if ((pipe = popen(buf, "rt"))) {
if (trace(515)) if (trace(515))