mirror of
https://github.com/beshu-tech/deltaglider.git
synced 2026-03-25 10:50:59 +01:00
fix: remove hardcoded /tmp dir in create_client()
Fixes #5 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -1446,7 +1446,7 @@ def create_client(
|
||||
)
|
||||
|
||||
# SECURITY: Always use ephemeral process-isolated cache
|
||||
cache_dir = Path(tempfile.mkdtemp(prefix="deltaglider-", dir="/tmp"))
|
||||
cache_dir = Path(tempfile.mkdtemp(prefix="deltaglider-"))
|
||||
# Register cleanup handler to remove cache on exit
|
||||
atexit.register(lambda: shutil.rmtree(cache_dir, ignore_errors=True))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user