Commit 294740f
committed
fix(store): replace
`Path.exists` is not safe against time-of-creation, time-of-use (TOCTOU)
bugs.
`OpenOptions.create_new` on the other hand is atomic, so not prone to
this kind of problems.Path.exists by OpenOptions.create_new
1 parent b26ff89 commit 294740f
1 file changed
Lines changed: 1 addition & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | 44 | | |
53 | | - | |
| 45 | + | |
54 | 46 | | |
55 | 47 | | |
56 | 48 | | |
| |||
0 commit comments