Skip to content

Commit

Permalink
Merge pull request #831 from onekey-sec/830-permission-fixup
Browse files Browse the repository at this point in the history
fix(permission): Ignore symlinks in fix_permission
  • Loading branch information
qkaiser authored Apr 15, 2024
2 parents ff923a6 + 2f60a30 commit 18787c3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
Git LFS file not shown
4 changes: 2 additions & 2 deletions unblob/extractor.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ def carve_chunk_to_file(carve_path: Path, file: File, chunk: Chunk):


def fix_permission(path: Path):
if not path.exists():
if path.is_symlink():
return

if path.is_symlink():
if not path.exists():
return

mode = path.stat().st_mode
Expand Down

0 comments on commit 18787c3

Please sign in to comment.