Commit 704e402
Andreas Auernhammer
cli: fix bug when generating key pairs.
This commit fixes a file creation bug in
the key generation code. If the force
flag has not been specified the OS file
flags would only contain `O_EXCL` such that
creation attempts will fail.
Now, the code *additionally* sets the `O_EXCL`
flag but preserves all other flags - i.e. `O_CREATE`.1 parent 4e3db15 commit 704e402
1 file changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
136 | 136 | | |
137 | 137 | | |
138 | 138 | | |
139 | | - | |
140 | | - | |
| 139 | + | |
| 140 | + | |
141 | 141 | | |
142 | 142 | | |
143 | 143 | | |
| |||
157 | 157 | | |
158 | 158 | | |
159 | 159 | | |
160 | | - | |
| 160 | + | |
161 | 161 | | |
162 | 162 | | |
163 | 163 | | |
| |||
0 commit comments