mirror of
https://github.com/curl/curl.git
synced 2026-07-23 21:57:21 +03:00
parent
764e4f066d
commit
e180dde9c5
1 changed files with 3 additions and 1 deletions
|
|
@ -126,10 +126,12 @@ char *findfile(const char *fname, int dotscore)
|
|||
home = c;
|
||||
}
|
||||
if(list[i].withoutdot) {
|
||||
if(!dotscore || xdg)
|
||||
if(!dotscore || xdg) {
|
||||
/* this is not looking for .curlrc, or the XDG_CONFIG_HOME was
|
||||
defined so we skip the extended check */
|
||||
curl_free(home);
|
||||
continue;
|
||||
}
|
||||
filename++; /* move past the leading dot */
|
||||
dotscore = 0; /* disable it for this check */
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue