uutils / uutils/coreutils

cp: derivation from gnu cp behavior

Open
#14,175 0 comments 0 reactions 0 assignees View on GitHub

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

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

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.