stacks-network / stacks-network/hacknet

todo: preserve file permissions with rootless containers

Open
#30 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
3
Forks
11
PR merge metrics
No merged PRs in 30d

Description

--same-owner isn’t used on macOS because the system tar there is BSD tar, not GNU tar. BSD tar doesn’t support the --same-owner flag, and would error out if we passed it. On macOS, ownership-preservation behavior is handled automatically when running under sudo, so the extra flag isn’t needed.

BSD tar reference as used for mac os instead of GNU
BSD tar docs reference for owner

Originally posted by @ASuciuX in #29

Contributor guide

No contributing guide indexed for this repository

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 by locating the tar invocation used for rootless containers in the TypeScript repository and compare its macOS handling with the referenced BSD tar behavior. Done means file permissions are preserved without passing unsupported --same-owner to macOS tar. No file or test is named, so tracing the existing container/archive path is required.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
devops, operating-systems
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.