curl: find curlrc in XDG_CONFIG_HOME without leading dot

If XDG_CONFIG_HOME is set, look for XDG_CONFIG_HOME/curlrc - without a
leading dot in the filename.

Fixes #12129
Reported-by: Jat Satiro
Closes #14600
This commit is contained in:
Daniel Stenberg 2024-08-19 23:22:56 +02:00
parent 96b9027f16
commit 26e9d3a896
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
2 changed files with 4 additions and 7 deletions

View file

@ -20,7 +20,7 @@ Content-Type: text/1
#
# Client-side
<client>
<file1 name="%LOGDIR/.curlrc">
<file1 name="%LOGDIR/curlrc">
--next
header = "a: a"
data = "curlrc read"
@ -34,7 +34,7 @@ HOME=
CURL_HOME=
</setenv>
<name>
Verify XDG_CONFIG_HOME use to find .curlrc
Verify XDG_CONFIG_HOME use to find curlrc
</name>
<command option="no-q">
%HOSTIP:%HTTPPORT/%TESTNUMBER