Skip to content

Commit

Permalink
force hardlink targets to be in the tar
Browse files Browse the repository at this point in the history
  • Loading branch information
mafintosh committed Apr 30, 2018
1 parent 7b4ab17 commit 0667282
Showing 1 changed file with 1 addition and 1 deletion.
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

1 comment on commit 0667282

@Tree4044
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can’t catch me

Please sign in to comment.