uutils / uutils/coreutils

install: ancestors_mode_directories_with_file test fails with user with umask other than 022

Open
#11,363 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

U - install
Dominant language
Rust
Stars
24.1k
Forks
2k
Avg merge
1d 5h
Merged PRs (30d)
365

Description

After commit 0c41299975 from PR #10140 , the test_install_ancestors_mode_directories_with_file test don't pass on my local environment.
Maybe related to the system I'm using, which is built from the LFS book, or related to the btrfs file system containing my local uutils repository.
EDIT:
This issue seems related with the default umask of my user, which is 002 by default.
The test assumes the directory created by install --mode=200 -D have the same permission with mkdir, but it's not true with the GNU install command.

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

Start with test_install_ancestors_mode_directories_with_file and the behavior introduced by commit 0c41299975. Run the test with a non-022 umask and compare the permissions from install --mode=200 -D with GNU install. Done means the test reflects the intended behavior across relevant umasks and passes consistently.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
cli, testing-qa
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
62/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.