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

Symlinked directories should be protected against accidental writes #147

Open
jasoncodes opened this issue May 6, 2017 · 0 comments
Open

Comments

@jasoncodes
Copy link
Member

My freshrc contains the following:

fresh vim/colors --file=~/.vim/colors/

This builds ~/.fresh/build/vim-colors and symlinks it to ~/.vim/colors. As a result, any new files created in ~/.vim/colors are silently lost when fresh is next ran. We should make these directories read only to prevent accidental loss.

Care should be taken to test the cleanup code for ~/.fresh/build.old. Automated tests for this part is probably not required unless existing code fails.

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

No branches or pull requests

1 participant