[BUG] "Create" hangs on linux socket files
Open
Nobody has claimed this yet.
Enhancement
- Dominant language
- JavaScript
- Stars
- 922
- Forks
- 281
- PR merge metrics
- No merged PRs in 30d
Description
What / Why
Creating archive hangs if target is linux socket (or folder with socket files inside).
At the same time, linux tar utility skips socket files, and ends process successfully.
When
When meets linux socket file
Current Behavior
Hangs
Steps to Reproduce
// If /var/run includes .sock files
await tar.create({
gzip: true,
file: "run.tar.gz",
}, ["/var/run"])
Expected Behavior
Creates archive
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
Start by reproducing the issue through the tar.create entry point with a Linux socket file or a directory containing one. Trace how archive creation handles filesystem entries and compare that path with the expected behavior: socket files should be skipped and creation should complete successfully.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, node.js
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100