Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
- address: fix TypeError when sorting locations containing mixed address types @devs6186 #2195
- loader: skip PE files with unrealistically large section virtual sizes to prevent resource exhaustion @devs6186 #1989
- engine/render: fix unbounded range sentinel precedence so `count(...): N or more` uses explicit `((1 << 64) - 1)` @blenbot #2936
- cache: support *BSD @williballenthin @res2500 #2949

### capa Explorer Web
- webui: fix 404 for "View rule in capa-rules" by using encodeURIComponent for rule name in URL @devs6186 #2482
Expand Down
2 changes: 1 addition & 1 deletion capa/rules/cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def get_default_cache_directory() -> Path:
# MacOS: ~/Library/Caches/capa

# ref: https://stackoverflow.com/a/8220141/87207
if sys.platform == "linux" or sys.platform == "linux2":
if sys.platform.startswith(("linux", "freebsd", "openbsd", "netbsd", "dragonfly")):
Comment thread
williballenthin marked this conversation as resolved.
directory = Path(os.environ.get("XDG_CACHE_HOME", Path.home() / ".cache" / "capa"))
elif sys.platform == "darwin":
directory = Path.home() / "Library" / "Caches" / "capa"
Expand Down
Loading