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

fix(keystore): avoid racy filesystem access #6999

Merged
merged 1 commit into from Mar 25, 2020
Merged

Conversation

Stebalien
Copy link
Member

Instead of checking then performing a file operation, perform the file operation and check the error.

Merge to master after the base PR. I'm just filing this now so I don't forget.

@hsanjuan hsanjuan force-pushed the feat/AuHau-encoding-key-names branch from 13f0c20 to cbb4017 Compare March 16, 2020 16:37
@hsanjuan
Copy link
Contributor

hmm good catch

@Stebalien Stebalien force-pushed the feat/AuHau-encoding-key-names branch 2 times, most recently from 2a27519 to 0d9d6e9 Compare March 24, 2020 00:46
Instead of checking then performing a file operation, perform the file operation
and check the error.
@Stebalien Stebalien changed the base branch from feat/AuHau-encoding-key-names to master March 25, 2020 17:05
@Stebalien Stebalien requested a review from dirkmc March 25, 2020 20:31
Copy link
Contributor

@dirkmc dirkmc left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@Stebalien Stebalien merged commit 39b9c3a into master Mar 25, 2020
@hsanjuan hsanjuan deleted the fix/racy-fs-access branch March 26, 2020 11:26
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 this pull request may close these issues.

None yet

3 participants