]> git.ipfire.org Git - thirdparty/curl.git/commit
tool_findfile: check ~/.config/curlrc too
authorDaniel Stenberg <daniel@haxx.se>
Sun, 2 Jan 2022 21:23:34 +0000 (22:23 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 7 Jan 2022 09:10:49 +0000 (10:10 +0100)
commit764e4f066d5719e68fa0d6b0b0d9efa0625c5c15
tree6c45cdf13860514699deed9f95f14dec2a164389
parent4432234acaad3ecaf852b4c8a69c8fccc94ec512
tool_findfile: check ~/.config/curlrc too

... after the initial checks for .curlrc and if XDG_CONFIG_HOME is not
set, use $HOME and $CURL_HOME to check if ~/.config/curlrc is present.

Add test 436 to verify

Reported-by: Sandro Jaeckel
Fixes #8208
Closes #8213
src/tool_findfile.c
src/tool_findfile.h
src/tool_parsecfg.c
tests/data/Makefile.inc
tests/data/test436 [new file with mode: 0644]