Skip to content

tail: replace same-file with rustix and drop the dependency - #14208

Merged
sylvestre merged 2 commits into
uutils:mainfrom
wtcpython:remove-same-file
Aug 29, 2026
Merged

tail: replace same-file with rustix and drop the dependency#14208
sylvestre merged 2 commits into
uutils:mainfrom
wtcpython:remove-same-file

Conversation

@wtcpython

Copy link
Copy Markdown
Contributor

Replace the external same-file dependency in uu_tail with rustix::fs::fstat and rustix::fs::tell and remove it from the workspace.

Comment thread src/uu/tail/src/args.rs Outdated
// cannot be applied under these circumstances and is therefore ineffective.
if self.follow.is_some() && self.has_stdin() {
#[cfg(unix)]
let stdin_is_not_regular = rustix::fs::fstat(std::io::stdin().as_fd())

This comment was marked as resolved.

@github-actions

github-actions Bot commented Aug 28, 2026

Copy link
Copy Markdown

GNU testsuite comparison:

Skip an intermittent issue tests/tail/tail-n0f (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)
Congrats! The gnu test tests/printf/printf-surprise is now passing!

@sylvestre

Copy link
Copy Markdown
Contributor

Three intermittents with tail, not sure it is a coincidence

@sylvestre
sylvestre merged commit 59fea30 into uutils:main Aug 29, 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.

3 participants