bug(tac): No errors when the filename is `/dev/mem`
Open
Nobody has claimed this yet.
U - tac
- Dominant language
- Rust
- Stars
- 24.1k
- Forks
- 2k
- Avg merge
- 1d 5h
- Merged PRs (30d)
- 365
Description
Hi, uutils mainteners
to test that, you need run
relunsec@relunsec:~/software/coreutils/target/debug$ sudo ./tac /dev/mem
relunsec@relunsec:~/software/coreutils/target/debug$ sudo gnutac /dev/mem
gnutac: /dev/mem: read error: Operation not permitted
relunsec@relunsec:~/software/coreutils/target/debug$
as you can see the gnu one error out while the uu tac, outputs no errors at all
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the reported commands with uutils tac and GNU tac against /dev/mem, then locate the tac command entry point and its read-error handling. Done means uutils tac reports the read failure instead of exiting silently, with a regression test if the existing test structure supports it.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 52/100