isaacs / isaacs/node-tar

[BUG] "Create" hangs on linux socket files

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

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

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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.