Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tool_findfile: detect files in XDG home without leading dot #12135

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jay
Copy link
Member

@jay jay commented Oct 16, 2023

WIP

The order is now:

  • $XDG_CONFIG_HOME/curlrc
  • $XDG_CONFIG_HOME/.curlrc
  • $XDG_CONFIG_HOME/_curlrc (if dotscore is true)

Fixes #12129
Closes #xxxx

Prior to this change there was no check for the dotless version of the filename.

@jay jay force-pushed the fix_xdg_nodot branch 2 times, most recently from 87b8239 to 61d02f9 Compare October 16, 2023 07:42
The order is now:

- $XDG_CONFIG_HOME/curlrc
- $XDG_CONFIG_HOME/.curlrc
- $XDG_CONFIG_HOME/_curlrc (if dotscore is true)

Prior to this change there was no check for the dotless version of the
filename.

Fixes curl#12129
Closes #xxxx
@jay
Copy link
Member Author

jay commented Nov 3, 2023

Any opinions on this?

@dfandrich
Copy link
Contributor

I haven't reviewed the code, but conceptually, this seems like the right thing to do. There's no need for a leading dot in files in ~/.config, and practically no programs do it.

Copy link
Member

@bagder bagder left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

needs attention

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

curl tool won't search for curlrc (no leading dot) in XDG_CONFIG_HOME
3 participants