From 5a647f9045ecf5c5aef49c02f85863613ea4f4c1 Mon Sep 17 00:00:00 2001 From: zim-editor Date: Sun, 1 Jun 2025 07:47:50 -0700 Subject: [PATCH] Update index.js --- index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index 2e1ae6d0..e6942250 100644 --- a/index.js +++ b/index.js @@ -261,7 +261,8 @@ 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) {