Skip to content

Commit 3468f79

Browse files
committed
uhh
1 parent 9e095ec commit 3468f79

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

packages/app-builder-lib/src/asar/asarUtil.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,8 @@ export class AsarPackager {
144144
}
145145

146146
const realPathFile = await fs.realpath(file)
147-
const isOutsidePackage = path.relative(fileSet.src, realPathFile).startsWith("..")
147+
const realPathRelative = path.relative(fileSet.src, realPathFile)
148+
const isOutsidePackage = realPathRelative.startsWith("..")
148149
if (isOutsidePackage) {
149150
log.error({ source: log.filePath(file), realPathFile: log.filePath(realPathFile) }, `unable to copy, file is symlinked outside the package`)
150151
throw new Error(`Cannot copy file (${path.basename(file)}) symlinked to file (${path.basename(realPathFile)}) outside the package as that violates asar security integrity`)

test/src/globTest.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ test.ifNotWindows("outside symlink", ({ expect }) =>
132132
)
133133
)
134134

135-
test.only("two package nested symlink", ({ expect }) =>
135+
test.ifNotWindows("two package nested symlink", ({ expect }) =>
136136
appTwo(
137137
expect,
138138
{

0 commit comments

Comments
 (0)