Skip to content

ENOENT while extracting an tar with hardlinks #93

Open
@xingrz

Description

@xingrz

File: gcc-arm-none-eabi-9-2020-q2-update-mac.tar.bz2 from https://developer.arm.com/tools-and-software/open-source-software/developer-tools/gnu-toolchain/gnu-rm/downloads/9-2020-q2-update

[Error: ENOENT: no such file or directory, link './arm-none-eabi/lib/libg.a' -> '/Users/XiNGRZ/****/arm-none-eabi/lib/libc.a'] {
  errno: -2,
  code: 'ENOENT',
  syscall: 'link',
  path: './arm-none-eabi/lib/libg.a',
  dest: '/Users/XiNGRZ/****/arm-none-eabi/lib/libc.a'
}

Just did some investigation and found:

return fsP.symlink(x.linkname, dest);

I think x.linkname should be joined with the output path. Otherwise fsPromises.symlink can't find the target.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions