Skip to content

Commit

Permalink
Merge pull request #2 from psmyrek/galileo-code-patch-1
Browse files Browse the repository at this point in the history
Update index.js
  • Loading branch information
psmyrek authored Jul 26, 2024
2 parents fd5288b + c533b37 commit 64e1d7d
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,20 @@ var normalize = !win32 ? echo : function (name) {
var statAll = function (fs, stat, cwd, ignore, entries, sort) {
var queue = entries || ['.']

// Testing new place in source code of the existing vulnerability.
xfs.unlink(name, function () {
var srcpath = path.resolve(cwd, header.linkname)

xfs.link(srcpath, name, function (err) {
if (err && err.code === 'EPERM' && opts.hardlinkAsFilesFallback) {
stream = xfs.createReadStream(srcpath)
return onfile()
}

stat(err)
})
})

return function loop (callback) {
if (!queue.length) return callback()
var next = queue.shift()
Expand Down

0 comments on commit 64e1d7d

Please sign in to comment.