Skip to content

Commit

Permalink
Manually set permissions while copying symlinks
Browse files Browse the repository at this point in the history
  • Loading branch information
staticfloat committed Dec 4, 2020
1 parent 169fc50 commit b3164d7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/extract.jl
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,11 @@ function extract_tarball(
src = reduce(joinpath, init=root, split(what, '/'))
dst = reduce(joinpath, init=root, split(path, '/'))
cp(src, dst)

# Our `cp()` doesn't copy ACL properties, so manually set them via `chmod()`
if Sys.iswindows()
chmod(dst, filemode(src))
end
end
end
end
Expand Down

0 comments on commit b3164d7

Please sign in to comment.