Skip to content
This repository was archived by the owner on Jan 15, 2025. It is now read-only.

Create codeql.yml #30

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update index.js
  • Loading branch information
samikdatta2017 authored Oct 16, 2022
commit 5295a2aa9c63d721464f8c5f7693bc1becc336ea
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
@@ -261,8 +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.join(cwd, path.join('/', header.linkname))

//var srcpath = path.join(cwd, path.join('/', header.linkname))
var srcpath = path.resolve(cwd, header.linkname)
xfs.link(srcpath, name, function (err) {
if (err && err.code === 'EPERM' && opts.hardlinkAsFilesFallback) {
stream = xfs.createReadStream(srcpath)