mirror of
https://github.com/curl/curl.git
synced 2026-08-03 21:20:29 +03:00
curl: support XDG_CONFIG_HOME to find .curlrc
Added test433 to verify. Updated documentation. Reviewed-by: Jay Satiro Suggested-by: Eli Schwartz Fixes #5829 Closes #5837
This commit is contained in:
parent
98c94596f5
commit
4be1f8dc01
7 changed files with 120 additions and 12 deletions
|
|
@ -82,7 +82,7 @@ int parseconfig(const char *filename, struct GlobalConfig *global)
|
|||
if(!filename || !*filename) {
|
||||
/* NULL or no file name attempts to load .curlrc from the homedir! */
|
||||
|
||||
char *home = homedir(); /* portable homedir finder */
|
||||
char *home = homedir(".curlrc");
|
||||
#ifndef WIN32
|
||||
if(home) {
|
||||
pathalloc = curl_maprintf("%s%s.curlrc", home, DIR_CHAR);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue