Commit 85e7833
committed
fix(token): handle corrupted token file by unlinking before O_EXCL create
When the token file exists but contains invalid data (corrupted),
the O_EXCL flag on the new file creation fails with EEXIST since
the corrupt file is still on disk. Fix: unlink the corrupt file
before attempting to create a new one.
Found during UAT on Windows.1 parent ffbfbbd commit 85e7833
1 file changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | | - | |
| 58 | + | |
59 | 59 | | |
| 60 | + | |
60 | 61 | | |
61 | 62 | | |
62 | 63 | | |
| |||
0 commit comments