diff options
author | Olivier Bertrand <bertrandop@gmail.com> | 2020-11-14 18:28:16 +0100 |
---|---|---|
committer | Olivier Bertrand <bertrandop@gmail.com> | 2020-11-14 18:28:16 +0100 |
commit | 8771390dfd3a98ae47b76b5f262af76aa8232cd7 (patch) | |
tree | 8e56e6fb1cd4b7c12afbde0431985329b39d4565 /storage/connect | |
parent | 9193ceb2c4ed32757f567e3db865ab93f66b91a8 (diff) | |
download | mariadb-git-8771390dfd3a98ae47b76b5f262af76aa8232cd7.tar.gz |
Change cURL option from > to -o. modified storage/connect/tabrest.cpp
Diffstat (limited to 'storage/connect')
-rw-r--r-- | storage/connect/tabrest.cpp | 6 |
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)) |