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

Bug in expanding filenames including tildes ~ #108

Closed
agargiulo opened this issue Feb 7, 2022 · 0 comments · Fixed by #110
Closed

Bug in expanding filenames including tildes ~ #108

agargiulo opened this issue Feb 7, 2022 · 0 comments · Fixed by #110

Comments

@agargiulo
Copy link

https://github.com/99designs/keyring/blob/master/file.go#L43

After finding the code linked above, I noticed that it doesn't account for ~accountName and will do bad things when you try

[~] $ aws-vault --backend=file --file-dir=~agargiulo/thisCanNotWorkCanIt  list
aws-vault: error: list: mkdir /Users/agargiuloagargiulo: permission denied

But I'm not sure how to go about fixing this. It's nice to support ~/ expansion but ~agargiulo is 100% not the same as /Users/agargiuloagargiulo

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

Successfully merging a pull request may close this issue.

1 participant