Skip to content

main/curl: patch to workaround netrc parse error

Workaround #16593 (closed) by reverting an upstream commit https://github.com/curl/curl/commit/3b43a05e000aa8f65bda513f733a73fefe35d5ca causing the issue.

As curl 8.11.0 contains a security fix, it's not suitable to simply revert to the old version. This is a temporary workaround until the upstream code is fixed and a new version is released.

Upstream issue: https://github.com/curl/curl/issues/15496

I locally tested that the git operations are fixed by this patch.

$ cd curl
$ export LD_PRELOAD=$(pwd)/lib/libcurl.so.4.8.0
$ git checkout curl-8_11_0
$ make -j
$ git ls-remote https://github.com/curl/curl.git | wc -l  # Broken
fatal: unable to access 'https://github.com/curl/curl.git/': .netrc parser error
0
$ git revert 3b43a05e000aa8f65bda513f733a73fefe35d5ca # Same as this patch
Auto-merging lib/multi.c
Auto-merging lib/url.c
Auto-merging lib/urldata.h
[detached HEAD cd4e7a704] Revert "netrc: cache the netrc file in memory"
 6 files changed, 188 insertions(+), 292 deletions(-)
$ make -j
$ git ls-remote https://github.com/curl/curl.git | wc -l # Works
12005
Edited by Atsushi Watanabe

Merge request reports

Loading