uutils / uutils/coreutils

bug(dircolors): ignores error handling for special file /proc/self/mem

Open
#12,797 0 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.