summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier Bertrand <bertrandop@gmail.com>2020-11-14 18:28:16 +0100
committerOlivier Bertrand <bertrandop@gmail.com>2020-11-14 18:28:16 +0100
commit8771390dfd3a98ae47b76b5f262af76aa8232cd7 (patch)
tree8e56e6fb1cd4b7c12afbde0431985329b39d4565
parent9193ceb2c4ed32757f567e3db865ab93f66b91a8 (diff)
downloadmariadb-git-8771390dfd3a98ae47b76b5f262af76aa8232cd7.tar.gz
Change cURL option from > to -o. modified storage/connect/tabrest.cpp
-rw-r--r--storage/connect/tabrest.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/storage/connect/tabrest.cpp b/storage/connect/tabrest.cpp
index a38e8bb5fec..ee3a289c2e3 100644
--- a/storage/connect/tabrest.cpp
+++ b/storage/connect/tabrest.cpp
@@ -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))