Skip to content

touch: drop O_TRUNC on create to close TOCTOU race (#10019) - #12171

Merged
sylvestre merged 1 commit into
uutils:mainfrom
sylvestre:toctou-touch
Jun 4, 2026
Merged

sylvestre merged 1 commit into
uutils:mainfrom
sylvestre:toctou-touch

Conversation

@sylvestre

Copy link
Copy Markdown
Contributor

No description provided.

@github-actions

github-actions Bot commented May 6, 2026 •

Copy link
Copy Markdown

GNU testsuite comparison:

Skip an intermittent issue tests/pr/bounded-memory (fails in this run but passes in the 'main' branch)
Skip an intermittent issue tests/tail/retry (fails in this run but passes in the 'main' branch)
Skipping an intermittent issue tests/date/date-locale-hour (passes in this run but fails in the 'main' branch)
Skipping an intermittent issue tests/misc/io-errors (passes in this run but fails in the 'main' branch)
Note: The gnu test tests/rm/many-dir-entries-vs-OOM is now being skipped but was previously passing.
Congrats! The gnu test tests/cut/bounded-memory is now passing!
Congrats! The gnu test tests/tail/tail-n0f is now passing!

@sylvestre
sylvestre marked this pull request as ready for review May 7, 2026 06:44
@sylvestre
sylvestre requested review from RenjiSann and cakebaker May 7, 2026 06:54
Comment thread tests/by-util/test_touch.rs Outdated
@sylvestre
sylvestre force-pushed the toctou-touch branch 2 times, most recently from 02c22cd to 568785e Compare June 2, 2026 18:45
@sylvestre
sylvestre merged commit d296f8d into uutils:main Jun 4, 2026
176 checks passed
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