Skip to content

Commit

Permalink
Do not follow symlink when we copy a directory.
Browse files Browse the repository at this point in the history
  • Loading branch information
mgautierfr committed Oct 20, 2023
1 parent 5d763f1 commit a11c3d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kiwixbuild/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def copy_tree(src, dst, post_copy_function=None):
os.makedirs(dstdir, exist_ok=True)
for f in files:
dstfile = pj(dstdir, f)
shutil.copy2(pj(root, f), dstfile)
shutil.copy2(pj(root, f), dstfile, follow_symlinks=False)
if post_copy_function is not None:
post_copy_function(dstfile)

Expand Down

0 comments on commit a11c3d7

Please sign in to comment.