mirror of
https://github.com/Omni-guides/Jackify.git
synced 2026-08-14 02:23:45 +02:00
Release v0.7 - Tools Hub, Engine Choice, NXM Link Handling, Native Component Install, NSF/CSF Support
This commit is contained in:
@@ -38,6 +38,11 @@ class FilesystemOwnershipMixin:
|
||||
Verify and fix ownership/permissions for modlist directory.
|
||||
Returns (success, error_message).
|
||||
"""
|
||||
from jackify.backend.handlers.validation_handler import ValidationHandler
|
||||
if ValidationHandler().is_dangerous_directory(path):
|
||||
logger.error("Refusing to modify permissions on dangerous path: %s", path)
|
||||
return False, f"Refusing to modify permissions on '{path}': system or user root directory."
|
||||
|
||||
if not path.exists():
|
||||
logger.error("Path does not exist: %s", path)
|
||||
return False, f"Path does not exist: {path}"
|
||||
|
||||
Reference in New Issue
Block a user