cp: derivation from gnu cp behavior
Open
Nobody has claimed this yet.
U - cp
- Dominant language
- Rust
- Stars
- 24.1k
- Forks
- 2k
- Avg merge
- 1d 5h
- Merged PRs (30d)
- 365
Description
Run as privileged user:
touch a ; touch b
chmod 000 b
cp -f a b
stat -c '%a' b
Latest commit coreutils returns mode 644 here, gnu cp mode 000. Already marked as "TODO" in code, pr on its way.
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
Run the provided reproduction as a privileged user and inspect the cp implementation where this behavior is marked TODO. Compare the latest Rust coreutils result with GNU cp, then verify that forcing an overwrite of mode-000 b leaves its mode at 000.
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
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100