3 ms·
No, it just means you're checking the wrong file so you might not get the nice error message from the initial check. It's still not going to do anything incorr
by IshKebab 2y ago
No, it just means you're checking the wrong file so you might not get the nice error message from the initial check.
It's still not going to do anything incorrect when it comes to actually open the file though.
TOCTOU only matters when the check is actually checking something important. Here it isn't; it's just giving nicer error messages. If you bypass it you just lose those nice error messages.
So it isn't a problem here.