Skip to content

tail: treat a watched file replaced by a symlink as untailable#12661

Open
sylvestre wants to merge 1 commit into
uutils:mainfrom
sylvestre:tail-untailable-symlink
Open

tail: treat a watched file replaced by a symlink as untailable#12661
sylvestre wants to merge 1 commit into
uutils:mainfrom
sylvestre:tail-untailable-symlink

Conversation

@sylvestre
Copy link
Copy Markdown
Contributor

Under --follow=name, handle_event used metadata() (which follows symlinks), so a watched file swapped for a symlink was silently followed to the link target, exfiltrating its contents. Check symlink_metadata() and report the replacement as an untailable symbolic link, matching GNU.

Under --follow=name, handle_event used metadata() (which follows symlinks),
so a watched file swapped for a symlink was silently followed to the link
target, exfiltrating its contents. Check symlink_metadata() and report the
replacement as an untailable symbolic link, matching GNU.
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jun 6, 2026

GNU testsuite comparison:

Skip an intermittent issue tests/date/date-locale-hour (fails in this run but passes 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/cp/link-heap is now being skipped but was previously passing.

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.

1 participant