bug(dircolors): ignores error handling for special file /proc/self/mem
Open
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 24.1k
- Forks
- 2k
- Avg merge
- 1d 5h
- Merged PRs (30d)
- 365
Description
Hi, uutils mainteners
i want let you known, the uutils dircolors ignore errors for special file /proc/self/mem, our testing confirms
relunsec@relunsec:~/software/coreutils/target/debug$ ./dircolors /proc/self/mem
LS_COLORS='';
export LS_COLORS
while the GNU one errors out correctly
relunsec@relunsec:~/software/coreutils/target/debug$ gnudircolors /proc/self/mem
gnudircolors: /proc/self/mem: read error: Input/output error
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
Reproduce the reported ./dircolors /proc/self/mem invocation and compare its output with gnudircolors. Trace the dircolors implementation's handling of read errors for this special file, then verify that the error is reported instead of producing an empty LS_COLORS value.
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
- 55/100