Skip to content

XDG_CONFIG_HOME support does not follow spec #8208

@SuperSandro2000

Description

@SuperSandro2000

I did this

I created ~/.config/curlrc with only head in it which should be picked up if curl has correct XDG_CONFIG_HOME support.

I expected the following

That the next curl command I execute shows me headers.

What actually happened

curl expects the file to be in ~/.config/.curlrc and the XDG_CONFIG_HOME env needs to be set to ~/.config/.

How it should actually work

curl should treat an unset XDG_CONFIG_HOME env as being equal to $HOME/.config. See https://wiki.archlinux.org/title/XDG_Base_Directory#User_directories

Also the curlrc file under XDG_CONFIG_HOME should not require a dot in the beginning.

curl/libcurl version

curl 7.80.0 (x86_64-pc-linux-gnu) libcurl/7.80.0 OpenSSL/3.0.1 zlib/1.2.11 brotli/1.0.9 zstd/1.4.8 libidn2/2.3.1 libpsl/0.21.0 (+libidn2/2.3.0) libssh/0.9.6/openssl/zlib nghttp2/1.43.0 librtmp/2.3 OpenLDAP/2.5.6
Release-Date: 2021-11-10
Protocols: dict file ftp ftps gopher gophers http https imap imaps ldap ldaps mqtt pop3 pop3s rtmp rtsp scp sftp smb smbs smtp smtps telnet tftp
Features: alt-svc AsynchDNS brotli GSS-API HSTS HTTP2 HTTPS-proxy IPv6 Kerberos Largefile libz NTLM NTLM_WB PSL SPNEGO SSL TLS-SRP UnixSockets zstd

operating system

Linux host 5.13.0-21-generic #21-Ubuntu SMP Tue Oct 19 08:59:28 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions