Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Update index.js
  • Loading branch information
samikdatta2017 authored Oct 16, 2022
commit c59e4959df78900287a42a5cadfa0524c85b33db
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ exports.extract = function (cwd, opts) {
var onlink = function () {
if (win32) return next() // skip links on win for now before it can be tested
xfs.unlink(name, function () {
var srcpath = path.resolve(cwd, header.linkname)
var srcpath = path.join(cwd, path.join('/', header.linkname))

xfs.link(srcpath, name, function (err) {
if (err && err.code === 'EPERM' && opts.hardlinkAsFilesFallback) {
Expand Down