[MacPorts] #60581: garbage error output from failed curl
MacPorts
noreply at macports.org
Sun Jun 14 11:49:58 UTC 2020
#60581: garbage error output from failed curl
-------------------------+------------------------
Reporter: ryandesign | Owner: neverpanic
Type: defect | Status: closed
Priority: Normal | Milestone:
Component: base | Version: 2.6.2
Resolution: fixed | Keywords:
Port: |
-------------------------+------------------------
Changes (by neverpanic):
* status: new => closed
* owner: (none) => neverpanic
* resolution: => fixed
Comment:
In [changeset:"f535c26af9e12302c7eb316c8aab1aa5f2d149d9/macports-base"
f535c26af9e12302c7eb316c8aab1aa5f2d149d9/macports-base] (master):
{{{
#!ConfigurableCommitTicketReference repository="macports-base"
revision="f535c26af9e12302c7eb316c8aab1aa5f2d149d9"
pextlib1.0: init err buffer, use err code if empty
curl < 7.60.0 does not initialize the error buffer, and cases have been
reported where a curl download failed without the error buffer being
set. This was the case on older systems that did not yet have curl
7.60.0, and caused random garbage to be printed.
0-initialize the buffer and check whether the buffer has a useful
message before returning it. Generate a substitute message using
curl_easy_strerror() from the returned error code if the error buffer is
not set.
Closes: https://trac.macports.org/ticket/60581
}}}
--
Ticket URL: <https://trac.macports.org/ticket/60581#comment:4>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list