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

Explicitly set the default config file's mode to 0600 #518

Merged
merged 1 commit into from
Jul 25, 2019

Conversation

senorprogrammer
Copy link
Collaborator

No description provided.

@senorprogrammer senorprogrammer force-pushed the 20190725-chmod-0600-config-file branch from d849f6c to 23c54b6 Compare July 25, 2019 17:22
@senorprogrammer senorprogrammer force-pushed the 20190725-chmod-0600-config-file branch from 23c54b6 to 50cc966 Compare July 25, 2019 17:29
}

func displayDefaultConfigWriteError(err error) {
fmt.Printf("\n%s Could not write the default configuration.\n", aurora.Red("ERROR:"))
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think this is a little obtuse, considering we throw it when permissions are incorrect. We should explicitly call out permissions here I think?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This error will happen if the default config.yml cannot be written for any reason into ~/.config/wtf/ on first create.

@senorprogrammer senorprogrammer merged commit d46108a into master Jul 25, 2019
@senorprogrammer senorprogrammer deleted the 20190725-chmod-0600-config-file branch August 20, 2019 19:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants