Skip to content
Permalink
Browse files

force hardlink targets to be in the tar

  • Loading branch information...
mafintosh committed Apr 30, 2018
1 parent 7b4ab17 commit 06672828e6fa29ac8551b1b6f36c852a9a3c58a2
Showing with 1 addition and 1 deletion.
  1. +1 −1 index.js
@@ -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) {

0 comments on commit 0667282

Please sign in to comment.
You can’t perform that action at this time.