[PATCH] netrc: 'default' with no credentials is not a match
authorDaniel Stenberg <daniel@haxx.se>
Fri, 3 Jan 2025 15:22:27 +0000 (16:22 +0100)
committerSamuel Henrique <samueloph@debian.org>
Fri, 8 May 2026 14:16:21 +0000 (07:16 -0700)
commit171c1557353b94f65fa29b25062c9eaba4948936
tree0a273db3d974bdceeb589c3e2341f647b0df65b5
parenta30fea5cf4c0986041041e21e7b5cc650936f40d
[PATCH] netrc: 'default' with no credentials is not a match

Test 486 verifies.

Reported-by: Yihang Zhou
Closes #15908

Backported by: Dr. Tobias Quathamer <toddy@debian.org>

Changes:
* Refresh patch context for lib/netrc.c
* Use tests/data/Makefile.inc to add new test instead of
  tests/data/Makefile.am, because that has only been
  introduced in later versions of curl.
* Replace "%LOGDIR" with "log" due to its absence in bookworm.

Gbp-Pq: Name CVE-2025-0167.patch
lib/netrc.c
tests/data/Makefile.inc
tests/data/test486 [new file with mode: 0644]