Skip to content

Commit d723b4a

Browse files
Merge pull request #1 from Embee-Software-Private-Limited/samikdatta2017-patch-1
Update index.js
2 parents 8f0733c + c59e495 commit d723b4a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
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)