Skip to content

Commit

Permalink
Fix symlink mismatch from host
Browse files Browse the repository at this point in the history
  • Loading branch information
Dramelac committed Nov 27, 2023
1 parent ad6f262 commit 1472d35
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion exegol/utils/FsUtils.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,12 @@ def setGidPermission(root_folder: Path):
perm_alert = True
for sub_item in root_folder.rglob('*'):
# Find every subdirectory
if not sub_item.is_dir():
try:
if not sub_item.is_dir():
continue
except PermissionError:
if not sub_item.is_symlink():
logger.error(f"Permission denied when trying to resolv {str(sub_item)}")
continue
# If the permission is already set, skip
if sub_item.stat().st_mode & stat.S_ISGID:
Expand Down

0 comments on commit 1472d35

Please sign in to comment.