From 8771390dfd3a98ae47b76b5f262af76aa8232cd7 Mon Sep 17 00:00:00 2001 From: Olivier Bertrand Date: Sat, 14 Nov 2020 18:28:16 +0100 Subject: Change cURL option from > to -o. modified storage/connect/tabrest.cpp --- storage/connect/tabrest.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'storage/connect') 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)) -- cgit v1.2.1