Skip to content

Commit

Permalink
Merge pull request #53 from yunzheng/main
Browse files Browse the repository at this point in the history
Don't resolve() Path objects so relative scans paths show up relative
  • Loading branch information
yunzheng authored Dec 19, 2021
2 parents b823a5e + 5dddb6c commit 0895dc7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion log4j-finder.py
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ def main():
log.info(f"Found jar file: {p}")
stats["scanned"] += 1
for (zinfo, zfile, zpath, parents) in iter_jarfile(
p.resolve().open("rb"), parents=[p.resolve()]
p.open("rb"), parents=[p]
):
log.info(f"Found zfile: {zinfo} ({parents}")
with zfile.open(zinfo.filename) as zf:
Expand Down

0 comments on commit 0895dc7

Please sign in to comment.