Skip to content

Commit 0667282

Browse files
committed
force hardlink targets to be in the tar
1 parent 7b4ab17 commit 0667282

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ exports.extract = function (cwd, opts) {
261261
var onlink = function () {
262262
if (win32) return next() // skip links on win for now before it can be tested
263263
xfs.unlink(name, function () {
264-
var srcpath = path.resolve(cwd, header.linkname)
264+
var srcpath = path.join(cwd, path.join('/', header.linkname))
265265

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

0 commit comments

Comments
 (0)