Skip to content

Commit 0e9afc0

Browse files
committed
tests: regression test for issue #1384
Signed-off-by: Jan Kowalleck <[email protected]>
1 parent cfd13d3 commit 0e9afc0

File tree

15 files changed

+2372
-1
lines changed

15 files changed

+2372
-1
lines changed

src/extractor.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,8 @@ export class Extractor {
158158
}
159159
for (const pci of pcis) {
160160
if (
161+
// Ignore all directories - they are not files :-)
162+
// Don't follow symlinks for security reasons!
161163
!pci.isFile() ||
162164
!this.#LICENSE_FILENAME_PATTERN.test(pci.name)
163165
) {

0 commit comments

Comments
 (0)