Replies: 1 comment 1 reply
-
That the file exists doesn't mean you can open it. Your code also contains a TOCTOU bug. Just open the file and handle the error when it's missing, don't check for its existence and only then try to open it. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Version
14.17.3
Platform
Darwin brooks-mac-mini-g.local 21.3.0 Darwin Kernel Version 21.3.0: Wed Jan 5 21:37:58 PST 2022; root:xnu-8019.80.24~20/RELEASE_X86_64 x86_64
Subsystem
fs
What steps will reproduce the bug?
No response
How often does it reproduce? Is there a required condition?
No response
What is the expected behavior?
What do you see instead?
Additional information
No response
Beta Was this translation helpful? Give feedback.
All reactions