Skip to content

Commit 537d007

Browse files
authored
Merge pull request #574 from onekey-sec/fix-symlink-perm
fix(extractor): do not set permission on symlink
2 parents 631c72e + 9bde224 commit 537d007

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

unblob/extractor.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ def carve_chunk_to_file(carve_path: Path, file: File, chunk: Chunk):
2323

2424

2525
def fix_permission(path: Path):
26+
if path.is_symlink():
27+
return
28+
2629
if path.is_file():
2730
path.chmod(0o644)
2831
elif path.is_dir():

0 commit comments

Comments
 (0)