8000 Fix tail panicing when seeking backwards by kilpkonn · Pull Request #3873 · uutils/coreutils · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Fix tail panicing when seeking backwards #3873

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 26, 2022

Conversation

kilpkonn
Copy link
Contributor

Previously tail -c n file.txt caused panic if n > sizeof file.txt.
Now it prints out whole file similarly to GNU tail.

Closes #3872

Previously `tail -c n file.txt` caused panic if n > sizeof file.txt.
Now it prints out whole file similarly to GNU tail.
@kilpkonn kilpkonn force-pushed the tail_seek_outside_bounds branch from a3048a7 to 09cfa44 Compare August 24, 2022 18:10
@sylvestre
Copy link
Contributor

Looks great, thanks

@sylvestre sylvestre merged commit 0dbcdde into uutils:main Aug 26, 2022
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.

uu-tail error with message Invalid argument if -c BYTES and BYTES is greater than bytes of file
2 participants
0