Skip to content

head: check directory on open fd, not via path is_dir() (#11972)#12173

Draft
sylvestre wants to merge 1 commit intouutils:mainfrom
sylvestre:toctou-head
Draft

head: check directory on open fd, not via path is_dir() (#11972)#12173
sylvestre wants to merge 1 commit intouutils:mainfrom
sylvestre:toctou-head

Conversation

@sylvestre
Copy link
Copy Markdown
Contributor

No description provided.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 6, 2026

GNU testsuite comparison:

Skip an intermittent issue tests/pr/bounded-memory (fails in this run but passes in the 'main' branch)

@oech3
Copy link
Copy Markdown
Contributor

oech3 commented May 7, 2026

Is it able to catch https://doc.rust-lang.org/std/io/enum.ErrorKind.html#variant.IsADirectory at 1st read instead of checking metadata?

@sylvestre
Copy link
Copy Markdown
Contributor Author

good point, i will have a look

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants