Skip to content

tail: report PermissionDenied instead of No such file when metadata f…#11018

Open
RedNhight wants to merge 2 commits intouutils:mainfrom
RedNhight:fix-issue-10193
Open

tail: report PermissionDenied instead of No such file when metadata f…#11018
RedNhight wants to merge 2 commits intouutils:mainfrom
RedNhight:fix-issue-10193

Conversation

@RedNhight
Copy link

Fixes #10193

Before:
tail prints "No such file" on lack of permissions.

After:
tail attempts open() and prints correct Permission denied.

@oech3
Copy link
Contributor

oech3 commented Feb 18, 2026

Thankyou for 1st contrib. Would you add test to https://github.com/uutils/coreutils/blob/main/tests/by-util/test_tail.rs ?

@github-actions
Copy link

GNU testsuite comparison:

Congrats! The gnu test tests/date/date-locale-hour is no longer failing!

@RedNhight
Copy link
Author

Thankyou for 1st contrib. Would you add test to https://github.com/uutils/coreutils/blob/main/tests/by-util/test_tail.rs ?

Yes, sure!

@rglKali
Copy link

rglKali commented Feb 18, 2026

lgtm!

@github-actions
Copy link

GNU testsuite comparison:

GNU test failed: tests/misc/io-errors. tests/misc/io-errors is passing on 'main'. Maybe you have to rebase?
Skip an intermittent issue tests/pr/bounded-memory (fails in this run but passes in the 'main' branch)

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.

tail: exists precheck masks permission errors

3 participants

Comments