expand: remove .is_dir() from path to avoid TOCTOU race#13203
Conversation
Merging this PR will degrade performance by 4.67%
Warning Please fix the performance issues or acknowledge them on CodSpeed. Performance Changes
Tip Investigate this regression by commenting Comparing Footnotes
|
|
sorry but i still don't see why it would be a TOCTOU issue |
|
|
|
sure but it will just fail later |
|
GNU testsuite comparison: |
|
fail later means we are checking that target is directory twice with additional stat... |
704243b to
d99ddaa
Compare
|
if i may, we have more important things to fix than this in the backlog |
This should appear as read error.