Skip to content

Comments

fix(inotify): fix TOCTOU issue#792

Merged
JohnTitor merged 2 commits intonotify-rs:mainfrom
JohnTitor:toctou
Feb 7, 2026
Merged

fix(inotify): fix TOCTOU issue#792
JohnTitor merged 2 commits intonotify-rs:mainfrom
JohnTitor:toctou

Conversation

@JohnTitor
Copy link
Member

Description

Fix #579

Ignore NOT_FOUND failures not to fail the whole path registration. Also fix a similar issue in add_single_watch which could happen when calling .metadata() on just-deleted files.

Related Issues

@JohnTitor JohnTitor merged commit 0880a40 into notify-rs:main Feb 7, 2026
30 of 31 checks passed
@JohnTitor JohnTitor deleted the toctou branch February 7, 2026 09:59
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.

TOCTOU bug when adding a watcher

1 participant